Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2802

match_bson_with_ctx behavior is inconsistent

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 1.14.0
    • Affects Version/s: None
    • Component/s: Testing

      match_bson_with_ctx is used during testing to compare a BSON document against a pattern. If it fails, it aborts, unless the caller has passed in a context object with certain fields set. This behavior is subtle and undocumented. Instead, match_bson_with_ctx should not abort, and callers of match_bson should always check its return value for success or failure.

            Assignee:
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: