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

ComparisonAssertion in the unit testing framework should not require overloaded operator <<

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Testing Infrastructure
    • None

    Description

      This forces the usage of less expressive assertions on types that don't define such overloads. We could use SFINAE to dispatch to a specialization of ComparisonAssertion that prints the compared values if the types being compared are ostream printable, otherwise omit printing them.

      Attachments

        Activity

          People

            schwerin@mongodb.com Andy Schwerin
            adam.midvidy Adam Midvidy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: