[SERVER-11679] improve query planner test Created: 13/Nov/13 Updated: 11/Jul/16 Resolved: 19/Nov/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | 2.5.5 |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | David Storch | Assignee: | David Storch |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
db/query/query_planner_test.cpp currently uses a function called dumpSolutions() to display the list of generated query plans. It does not have assertions to automatically verify that the expected solutions were in fact generated by the query planner. We would like to better automate this test. We want to be able to assert that a particular solution was generated by the planner. This could look something like an "expectSolution()" function which takes a textual representation of a QuerySolution and confirms that this solution was in fact generated by the planner. |
| Comments |
| Comment by Githook User [ 12/Dec/13 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: Signed-off-by: Matt Kangas <matt.kangas@mongodb.com> |
| Comment by Githook User [ 04/Dec/13 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: Signed-off-by: Matt Kangas <matt.kangas@mongodb.com> |
| Comment by Githook User [ 20/Nov/13 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: Signed-off-by: Matt Kangas <matt.kangas@mongodb.com> |
| Comment by Githook User [ 18/Nov/13 ] |
|
Author: {u'username': u'dstorch', u'name': u'David Storch', u'email': u'david.storch@10gen.com'}Message: Signed-off-by: Matt Kangas <matt.kangas@mongodb.com> |