summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_planner_test_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/query_planner_test_lib.h')
-rw-r--r--src/mongo/db/query/query_planner_test_lib.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/mongo/db/query/query_planner_test_lib.h b/src/mongo/db/query/query_planner_test_lib.h
index f1d6e267512..0a1931d1828 100644
--- a/src/mongo/db/query/query_planner_test_lib.h
+++ b/src/mongo/db/query/query_planner_test_lib.h
@@ -41,20 +41,20 @@
namespace mongo {
- class QueryPlannerTestLib {
- public:
- /**
- * @param testSoln -- a BSON representation of a query solution
- * @param trueSoln -- the root node of a query solution tree
- *
- * Returns true if the BSON representation matches the actual
- * tree, otherwise returns false.
- */
- static bool solutionMatches(const BSONObj& testSoln, const QuerySolutionNode* trueSoln);
+class QueryPlannerTestLib {
+public:
+ /**
+ * @param testSoln -- a BSON representation of a query solution
+ * @param trueSoln -- the root node of a query solution tree
+ *
+ * Returns true if the BSON representation matches the actual
+ * tree, otherwise returns false.
+ */
+ static bool solutionMatches(const BSONObj& testSoln, const QuerySolutionNode* trueSoln);
- static bool solutionMatches(const std::string& testSoln, const QuerySolutionNode* trueSoln) {
- return solutionMatches(fromjson(testSoln), trueSoln);
- }
- };
+ static bool solutionMatches(const std::string& testSoln, const QuerySolutionNode* trueSoln) {
+ return solutionMatches(fromjson(testSoln), trueSoln);
+ }
+};
} // namespace mongo