summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-10-01 19:57:56 -0400
committerDavid Storch <david.storch@10gen.com>2015-10-01 19:58:04 -0400
commitea38cdc9c2aa753d7720913fe92d1763bfb1763e (patch)
treeb857a5608b391ded830520e0edf2c41ac253e0a4
parente4964e0b77ee3d055946fb88bf37338a6a1906f1 (diff)
downloadmongo-ea38cdc9c2aa753d7720913fe92d1763bfb1763e.tar.gz
SERVER-16042 fix lint
-rw-r--r--src/mongo/db/query/query_planner_test.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/mongo/db/query/query_planner_test.cpp b/src/mongo/db/query/query_planner_test.cpp
index 4a29870f408..d3378221acc 100644
--- a/src/mongo/db/query/query_planner_test.cpp
+++ b/src/mongo/db/query/query_planner_test.cpp
@@ -1145,14 +1145,14 @@ TEST_F(QueryPlannerTest, OrElemMatchObjectBeneathAnd) {
"{fetch: {filter: {a:{$elemMatch:{b:{$gte:4}}}}, node: "
"{ixscan: {filter: null, pattern: {'a.b': 1},"
"bounds: {'a.b': [[4,Infinity,true,true]]}}}}}]}}");
- assertSolutionExists(
- "{or: {nodes: ["
- "{fetch: {filter: {a:{$elemMatch:{b:{$lte:1}}}},"
- "node: {ixscan: {filter: null, pattern: {'a.b': 1}, "
- "bounds: {'a.b': [[0,0,true,true]]}}}}},"
- "{fetch: {filter: {a:{$elemMatch:{b:{$gte:4}}}}, node: "
- "{ixscan: {filter: null, pattern: {'a.b': 1},"
- "bounds: {'a.b': [[4,Infinity,true,true]]}}}}}]}}");
+ assertSolutionExists(
+ "{or: {nodes: ["
+ "{fetch: {filter: {a:{$elemMatch:{b:{$lte:1}}}},"
+ "node: {ixscan: {filter: null, pattern: {'a.b': 1}, "
+ "bounds: {'a.b': [[0,0,true,true]]}}}}},"
+ "{fetch: {filter: {a:{$elemMatch:{b:{$gte:4}}}}, node: "
+ "{ixscan: {filter: null, pattern: {'a.b': 1},"
+ "bounds: {'a.b': [[4,Infinity,true,true]]}}}}}]}}");
}
// SERVER-13960: $or below $elemMatch with an inexact covered predicate.
@@ -1921,9 +1921,9 @@ TEST_F(QueryPlannerTest, ElemMatchWithAllElemMatchChild2) {
assertSolutionExists(
"{fetch: {node: {ixscan: {pattern: {'a.b.c.d': 1}, "
"bounds: {'a.b.c.d': [[-Infinity,3,true,false]]}}}}}");
- assertSolutionExists(
- "{fetch: {node: {ixscan: {pattern: {'a.b.c.d': 1}, "
- "bounds: {'a.b.c.d': [[1,Infinity,false,true]]}}}}}");
+ assertSolutionExists(
+ "{fetch: {node: {ixscan: {pattern: {'a.b.c.d': 1}, "
+ "bounds: {'a.b.c.d': [[1,Infinity,false,true]]}}}}}");
}
// SERVER-13677
@@ -1937,12 +1937,12 @@ TEST_F(QueryPlannerTest, ElemMatchWithAllChild) {
assertSolutionExists(
"{fetch: {node: {ixscan: {pattern: {'a.b.c': 1}, "
"bounds: {'a.b.c': [[4,4,true,true]]}}}}}");
- assertSolutionExists(
- "{fetch: {node: {ixscan: {pattern: {'a.b.c': 1}, "
- "bounds: {'a.b.c': [[5,5,true,true]]}}}}}");
- assertSolutionExists(
- "{fetch: {node: {ixscan: {pattern: {'a.b.c': 1}, "
- "bounds: {'a.b.c': [[6,6,true,true]]}}}}}");
+ assertSolutionExists(
+ "{fetch: {node: {ixscan: {pattern: {'a.b.c': 1}, "
+ "bounds: {'a.b.c': [[5,5,true,true]]}}}}}");
+ assertSolutionExists(
+ "{fetch: {node: {ixscan: {pattern: {'a.b.c': 1}, "
+ "bounds: {'a.b.c': [[6,6,true,true]]}}}}}");
}
TEST_F(QueryPlannerTest, ElemMatchValueMatch) {
@@ -2036,11 +2036,11 @@ TEST_F(QueryPlannerTest, ElemMatchEmbeddedAnd) {
"{ixscan: {filter: null, pattern: {'a.b': 1, 'a.c': 1}, "
"bounds: {'a.b': [[-Infinity,4,true,false]], "
"'a.c': [[25,25,true,true]]}}}}}");
- assertSolutionExists(
- "{fetch: {filter: {a:{$elemMatch:{b:{$gte:2,$lt: 4},c:25}}}, node: "
- "{ixscan: {filter: null, pattern: {'a.b': 1, 'a.c': 1}, "
- "bounds: {'a.b': [[2,Infinity,true,true]], "
- "'a.c': [[25,25,true,true]]}}}}}");
+ assertSolutionExists(
+ "{fetch: {filter: {a:{$elemMatch:{b:{$gte:2,$lt: 4},c:25}}}, node: "
+ "{ixscan: {filter: null, pattern: {'a.b': 1, 'a.c': 1}, "
+ "bounds: {'a.b': [[2,Infinity,true,true]], "
+ "'a.c': [[25,25,true,true]]}}}}}");
}
// SERVER-13664
@@ -4531,10 +4531,10 @@ TEST_F(QueryPlannerTest, MultikeySharedPrefixNoIntersectOutsideElemMatch) {
"{fetch: {node: {ixscan: {pattern: {'a.b':1,'a.c':1}, bounds: "
"{'a.b': [[0,Infinity,false,true]], "
" 'a.c': [[1,1,true,true]]}}}}}");
- assertSolutionExists(
- "{fetch: {node: {ixscan: {pattern: {'a.b':1,'a.c':1}, bounds: "
- "{'a.b': [[1,1,true,true]], "
- " 'a.c': [['MinKey','MaxKey',true,true]]}}}}}");
+ assertSolutionExists(
+ "{fetch: {node: {ixscan: {pattern: {'a.b':1,'a.c':1}, bounds: "
+ "{'a.b': [[1,1,true,true]], "
+ " 'a.c': [['MinKey','MaxKey',true,true]]}}}}}");
}
// Bounds for the predicates joined by the $elemMatch over the shared prefix