-
Type: Improvement
-
Resolution: Fixed
-
Priority: Trivial - P5
-
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.