54 va_start(list, assertDescription);
72 va_start(list, assertDescription);
88 return assertCondition;
101 va_start(list, assertDescription);
126 if (SDLTest_AssertsFailed == 0)
#define SDLTEST_MAX_LOGMESSAGE_LENGTH
int SDLTest_AssertCheck(int assertCondition, const char *assertDescription,...)
Assert for test cases that logs but does not break execution flow on failures. Updates assertion coun...
uint32_t Uint32
An unsigned 32-bit integer type.
static Uint32 SDLTest_AssertsPassed
#define TEST_RESULT_FAILED
static Uint32 SDLTest_AssertsFailed
#define ASSERT_FAIL
Fails the assert.
const char * SDLTest_AssertSummaryFormat
DECLSPEC void *SDLCALL SDL_memset(void *dst, int c, size_t len)
#define TEST_RESULT_NO_ASSERT
const char * SDLTest_AssertCheckFormat
void SDLTest_Log(const char *fmt,...)
Prints given message with a timestamp in the TEST category and INFO priority.
#define SDL_assert(condition)
int SDLTest_AssertSummaryToTestResult()
Converts the current assert summary state to a test result.
#define TEST_RESULT_PASSED
void SDLTest_ResetAssertSummary()
Resets the assert summary counters to zero.
void SDLTest_Assert(int assertCondition, const char *assertDescription,...)
Assert that logs and break execution flow on failures.
void SDLTest_LogAssertSummary()
Logs summary of all assertions (total, pass, fail) since last reset as INFO or ERROR.
void SDLTest_AssertPass(const char *assertDescription,...)
Explicitely pass without checking an assertion condition. Updates assertion counter.
DECLSPEC int SDLCALL SDL_vsnprintf(char *text, size_t maxlen, const char *fmt, va_list ap)
void SDLTest_LogError(const char *fmt,...)
Prints given message with a timestamp in the TEST category and the ERROR priority.