Add a tassertStatusOK() macro to assert_util.h

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Service Arch
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      A common code pattern is to ensure that the result of some operation was Status::OK().

      Example:

      Instead of this:
      
      tassert(3401202, "Error message", status);
      
      do this:
      
      tassertStatusOK(status);

              Assignee:
              [DO NOT USE] Backlog - Service Architecture
              Reporter:
              Timour Katchaounov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: