summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/path_support_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/ops/path_support_test.cpp')
-rw-r--r--src/mongo/db/ops/path_support_test.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/mongo/db/ops/path_support_test.cpp b/src/mongo/db/ops/path_support_test.cpp
index 01345564ccd..f1de975850f 100644
--- a/src/mongo/db/ops/path_support_test.cpp
+++ b/src/mongo/db/ops/path_support_test.cpp
@@ -537,7 +537,9 @@ static void assertContains(const EqualityMatches& equalities, const BSONObj& wra
}
if (!it->second->getData().valuesEqual(value)) {
FAIL(stream() << "Equality match at path \"" << path << "\" contains value "
- << it->second->getData() << ", not value " << value);
+ << it->second->getData()
+ << ", not value "
+ << value);
}
}
@@ -827,12 +829,17 @@ static void assertParent(const EqualityMatches& equalities,
StringData foundParentPath = path.dottedSubstring(0, parentPathPart);
if (foundParentPath != parentPath) {
FAIL(stream() << "Equality match parent at path \"" << foundParentPath
- << "\" does not match \"" << parentPath << "\"");
+ << "\" does not match \""
+ << parentPath
+ << "\"");
}
if (!parentEl.valuesEqual(value)) {
FAIL(stream() << "Equality match parent for \"" << pathStr << "\" at path \"" << parentPath
- << "\" contains value " << parentEl << ", not value " << value);
+ << "\" contains value "
+ << parentEl
+ << ", not value "
+ << value);
}
}
@@ -852,7 +859,8 @@ static void assertNoParent(const EqualityMatches& equalities, StringData pathStr
if (!parentEl.eoo()) {
StringData foundParentPath = path.dottedSubstring(0, parentPathPart);
FAIL(stream() << "Equality matches contained parent for \"" << pathStr << "\" at \""
- << foundParentPath << "\"");
+ << foundParentPath
+ << "\"");
}
}