summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/planner_ixselect_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/planner_ixselect_test.cpp')
-rw-r--r--src/mongo/db/query/planner_ixselect_test.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/query/planner_ixselect_test.cpp b/src/mongo/db/query/planner_ixselect_test.cpp
index 1f021e13d6e..e80eddd187b 100644
--- a/src/mongo/db/query/planner_ixselect_test.cpp
+++ b/src/mongo/db/query/planner_ixselect_test.cpp
@@ -70,7 +70,7 @@ unique_ptr<MatchExpression> parseMatchExpression(const BSONObj& obj) {
*/
template <typename Iter>
string toString(Iter begin, Iter end) {
- mongoutils::str::stream ss;
+ str::stream ss;
ss << "[";
for (Iter i = begin; i != end; i++) {
if (i != begin) {
@@ -100,7 +100,7 @@ void testGetFields(const char* query, const char* prefix, const char* expectedFi
for (vector<string>::const_iterator i = expectedFields.begin(); i != expectedFields.end();
i++) {
if (fields.find(*i) == fields.end()) {
- mongoutils::str::stream ss;
+ str::stream ss;
ss << "getFields(query=" << query << ", prefix=" << prefix << "): unable to find " << *i
<< " in result: " << toString(fields.begin(), fields.end());
FAIL(ss);
@@ -109,7 +109,7 @@ void testGetFields(const char* query, const char* prefix, const char* expectedFi
// Next, confirm that results do not contain any unexpected fields.
if (fields.size() != expectedFields.size()) {
- mongoutils::str::stream ss;
+ str::stream ss;
ss << "getFields(query=" << query << ", prefix=" << prefix
<< "): unexpected fields in result. expected: "
<< toString(expectedFields.begin(), expectedFields.end())
@@ -173,7 +173,7 @@ void findRelevantTaggedNodePathsAndIndices(MatchExpression* root,
tag->debugString(&buf);
RelevantTag* r = dynamic_cast<RelevantTag*>(tag);
if (!r) {
- mongoutils::str::stream ss;
+ str::stream ss;
ss << "tag is not instance of RelevantTag. tree: " << root->debugString()
<< "; tag: " << buf.str();
FAIL(ss);
@@ -235,7 +235,7 @@ void testRateIndices(const char* query,
// Compare the expected indices with the actual indices.
if (actualIndices != expectedIndices) {
- mongoutils::str::stream ss;
+ str::stream ss;
ss << "rateIndices(query=" << query << ", prefix=" << prefix
<< "): expected indices did not match actual indices. expected: "
<< toString(expectedIndices.begin(), expectedIndices.end())
@@ -247,7 +247,7 @@ void testRateIndices(const char* query,
// First verify number of paths retrieved.
vector<string> expectedPaths = StringSplitter::split(expectedPathsStr, ",");
if (paths.size() != expectedPaths.size()) {
- mongoutils::str::stream ss;
+ str::stream ss;
ss << "rateIndices(query=" << query << ", prefix=" << prefix
<< "): unexpected number of tagged nodes found. expected: "
<< toString(expectedPaths.begin(), expectedPaths.end())
@@ -262,7 +262,7 @@ void testRateIndices(const char* query,
if (*i == *j) {
continue;
}
- mongoutils::str::stream ss;
+ str::stream ss;
ss << "rateIndices(query=" << query << ", prefix=" << prefix
<< "): unexpected path found. expected: " << *j << " "
<< toString(expectedPaths.begin(), expectedPaths.end()) << ". actual: " << *i << " "