diff options
Diffstat (limited to 'src/mongo/db/update/path_support_test.cpp')
-rw-r--r-- | src/mongo/db/update/path_support_test.cpp | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/mongo/db/update/path_support_test.cpp b/src/mongo/db/update/path_support_test.cpp index ecd2fa9bab5..33300f956af 100644 --- a/src/mongo/db/update/path_support_test.cpp +++ b/src/mongo/db/update/path_support_test.cpp @@ -57,10 +57,10 @@ namespace { using namespace mongo; using namespace pathsupport; -using str::stream; using mutablebson::Element; -using std::unique_ptr; using std::string; +using std::unique_ptr; +using str::stream; class EmptyDoc : public mongo::unittest::Test { public: @@ -606,9 +606,7 @@ static void assertContains(const EqualityMatches& equalities, const BSONObj& wra &SimpleStringDataComparator::kInstance); if (eltCmp.evaluate(it->second->getData() != value)) { FAIL(stream() << "Equality match at path \"" << path << "\" contains value " - << it->second->getData() - << ", not value " - << value); + << it->second->getData() << ", not value " << value); } } @@ -898,19 +896,14 @@ 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 << "\""); } BSONElementComparator eltCmp(BSONElementComparator::FieldNamesMode::kIgnore, &SimpleStringDataComparator::kInstance); if (eltCmp.evaluate(parentEl != value)) { FAIL(stream() << "Equality match parent for \"" << pathStr << "\" at path \"" << parentPath - << "\" contains value " - << parentEl - << ", not value " - << value); + << "\" contains value " << parentEl << ", not value " << value); } } @@ -930,8 +923,7 @@ 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 << "\""); } } |