|
Defines |
#define | TEST(x) test_cunit_assert_impl((x), #x, __FILE__, __LINE__) |
| Test a logical condition.
|
#define | TEST_FATAL(x) if (!test_cunit_assert_impl((x), #x, __FILE__, __LINE__)) return |
| Test a logical condition with return on failure.
|
#define | FAIL(x) test_cunit_assert_impl(FALSE, #x, __FILE__, __LINE__) |
| Record a failure.
|
Functions |
void | test_cunit_initialize (void) |
void | test_cunit_report_results (void) |
int | main () |
void | test_cunit_start_tests (const char *strName) |
| Notify the test system that a set of tests is starting.
|
void | test_cunit_end_tests (void) |
| Notify the test system that a set of tests is complete.
|
void | test_cunit_add_test (void) |
| Register running a test (assertion).
|
void | test_cunit_add_failure (void) |
| Register failure of a test.
|
unsigned int | test_cunit_test_count (void) |
| Retrieve the number of tests run.
|
unsigned int | test_cunit_failure_count (void) |
| Retrieve the number of failed tests.
|
BOOL | test_cunit_assert_impl (BOOL value, const char *condition, const char *file, unsigned int line) |
Variables |
unsigned int | f_nTests = 0 |
unsigned int | f_nFailures = 0 |
unsigned int | f_nTests_stored = 0 |
unsigned int | f_nFails_stored = 0 |
clock_t | f_start_time |