World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
36 #ifndef SDL_test_assert_h_
37 #define SDL_test_assert_h_
61 void SDLTest_Assert(
int assertCondition, SDL_PRINTF_FORMAT_STRING
const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(2);
71 int SDLTest_AssertCheck(
int assertCondition, SDL_PRINTF_FORMAT_STRING const
char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(2);
78 void SDLTest_AssertPass(SDL_PRINTF_FORMAT_STRING const
char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(1);
void SDLTest_Assert(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription,...) SDL_PRINTF_VARARG_FUNC(2)
Assert that logs and break execution flow on failures.
void SDLTest_AssertPass(SDL_PRINTF_FORMAT_STRING const char *assertDescription,...) SDL_PRINTF_VARARG_FUNC(1)
Explicitly pass without checking an assertion condition. Updates assertion counter.
int SDLTest_AssertCheck(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription,...) SDL_PRINTF_VARARG_FUNC(2)
Assert for test cases that logs but does not break execution flow on failures. Updates assertion coun...
void SDLTest_ResetAssertSummary(void)
Resets the assert summary counters to zero.
void SDLTest_LogAssertSummary(void)
Logs summary of all assertions (total, pass, fail) since last reset as INFO or ERROR.
int SDLTest_AssertSummaryToTestResult(void)
Converts the current assert summary state to a test result.