Increase unit test coverage of query execution stages

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • Query Execution
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We should have a unit test for every query execution stage. Doing so is non-trivial as it may require mocking / untangling of dependencies.

      For instance, it would be nice to be able to unit test UpdateStage without a real collection or performing real writes. A mock collection could accept writes or be configured to issue WriteConflictException at predictable points in the test. Similarly, we could create mock implementations of IndexCursor and RecordCursor in order to unit test stages which perform data access.

            Assignee:
            [DO NOT USE] Backlog - Query Execution
            Reporter:
            David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: