Make CollatorFactoryMock accept more collations

XMLWordPrintableJSON

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

      Currently the CollatorFactoryMock we use in unittests (like in catalog_cache_test_fixture.cpp, can only set the collection default collation to either the simple collation or the kReverseString collation. This makes collation unittesting much more challenging since all calls to parse a collation BSONObj, will result in the kReverseString collation.

      I think for more robust unittesting, it's necessary to at least support the three basic types outlined in collator_interface_mock.h.

            Assignee:
            [DO NOT USE] Backlog - Query Execution
            Reporter:
            Jason Zhang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: