[SERVER-40358] Add assertion helpers like 'StatusOKWithContext' to all macros Created: 27/Mar/19  Updated: 29/Oct/23  Resolved: 13/Dec/19

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Improvement Priority: Major - P3
Reporter: Charlie Swanson Assignee: Eric Cox (Inactive)
Resolution: Fixed Votes: 0
Labels: neweng, qopt-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Query 2019-12-16, Query 2019-12-30
Participants:

 Description   

We have some very useful assertion macros like uassertStatusOKWithContext, but the API is not consistent across the various assertions like 'invariant' and 'fassert'. I'd personally like to see at least invariant be brought up to par with the helpers available for 'uasset', including:

  • invariantStatusOK
  • invariantStatusOKWithContext
  • I guess invariantStatusOKWithLocation for completeness?


 Comments   
Comment by Githook User [ 13/Dec/19 ]

Author:

{'name': 'Eric Cox', 'email': 'eric.cox@mongodb.com', 'username': 'ericox'}

Message: SERVER-40358 Add assertion helpers like 'StatusOKWithContext' to all macros
Branch: master
https://github.com/mongodb/mongo/commit/1af1d190cb53ea5b7624904dceed7a6a24804b3e

Generated at Thu Feb 08 04:54:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.