Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-76964

Make CollatorFactoryMock accept more collations

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Query Execution

    Description

      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.

      Attachments

        Activity

          People

            backlog-query-execution Backlog - Query Execution
            jason.zhang@mongodb.com Jason Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: