Add matcher and PrintTo for BSONObj

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • Fully Compatible
    • Programmability 2026-01-05, Programmability 2026-01-19, Programmability 2026-02-02
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      There should be various matchers for all comparison kinds for both BSONObj and BSONElement.

      More specifically, we need the following:

      • a matcher that extracts a vector of elements out of a BSONObj
      • a matcher that matches a specific element with matchers for name, type and value (value being a Matcher<T>)
      • Comparison matchers (== != < > <= >=)
      • Unordered comparison matchers

            Assignee:
            Guillaume Racicot
            Reporter:
            Guillaume Racicot
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: