MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / failureString

Function failureString

tests/framework/src/doctest.cpp:781–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779// clang-format on
780
781const char* failureString(assertType::Enum at) {
782 if(at & assertType::is_warn) //!OCLINT bitwise operator in conditional
783 return "WARNING";
784 if(at & assertType::is_check) //!OCLINT bitwise operator in conditional
785 return "ERROR";
786 if(at & assertType::is_require) //!OCLINT bitwise operator in conditional
787 return "FATAL ERROR";
788 return "";
789}
790
791DOCTEST_CLANG_SUPPRESS_WARNING_WITH_PUSH("-Wnull-dereference")
792DOCTEST_GCC_SUPPRESS_WARNING_WITH_PUSH("-Wnull-dereference")

Callers 2

log_messageMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected