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

Add assertion helpers like 'StatusOKWithContext' to all macros

    • Fully Compatible
    • Query 2019-12-16, Query 2019-12-30

      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?

            Assignee:
            eric.cox@mongodb.com Eric Cox (Inactive)
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: