MCPcopy Create free account
hub / github.com/Compaile/ctrack / failureString

Function failureString

test/doctest.h:3872–3884  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3870 default: DOCTEST_INTERNAL_ERROR("Tried stringifying invalid assert type!");
3871 }
3872 DOCTEST_MSVC_SUPPRESS_WARNING_POP
3873}
3874// clang-format on
3875
3876const char* failureString(assertType::Enum at) {
3877 if(at & assertType::is_warn) //!OCLINT bitwise operator in conditional
3878 return "WARNING";
3879 if(at & assertType::is_check) //!OCLINT bitwise operator in conditional
3880 return "ERROR";
3881 if(at & assertType::is_require) //!OCLINT bitwise operator in conditional
3882 return "FATAL ERROR";
3883 return "";
3884}
3885
3886DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSH("-Wnull-dereference")
3887DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSH("-Wnull-dereference")

Callers 2

log_messageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected