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

Add ASSERT_EQ support for FieldAvailability and ProvidedSortSet

    • Fully Compatible
    • QE 2022-03-07, QE 2022-03-21

      Unit tests that verify results of FieldAvailability or ProvidedSortSet are using ASSERT_TRUE with ==, rather than ASSERT_EQ, this is due to those types not having << operator for ostream, so that the values can be printed in case of mismatch.

      Example: 

      https://github.com/10gen/mongo/blob/26bcd0f788184402ecefdc1221faf13a1f9b6e47/src/mongo/db/query/query_solution_test.cpp

      We should add those operators and change ASSERT_TRUE to ASSERT_EQ where possibl to improve test debuggability.

            Assignee:
            romans.kasperovics@mongodb.com Romans Kasperovics
            Reporter:
            anna.wawrzyniak@mongodb.com Anna Wawrzyniak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: