36 #ifndef _SDL_test_assert_h 37 #define _SDL_test_assert_h 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.
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.
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...
int SDLTest_AssertSummaryToTestResult()
Converts the current assert summary state to a test result.
void SDLTest_ResetAssertSummary()
Resets the assert summary counters to zero.
#define SDL_PRINTF_FORMAT_STRING
void SDLTest_LogAssertSummary()
Logs summary of all assertions (total, pass, fail) since last reset as INFO or ERROR.
#define SDL_PRINTF_VARARG_FUNC(fmtargnumber)