Unit testing — Unit testing
KitTest;kit_bool_t kit_test_run (KitTest **tests, size_t num_tests);
Functions used for unit testing.
typedef struct { const char *name; void (*setup) (void); void (*teardown) (void); kit_bool_t (*run) (void);} KitTest;
Test suite abstraction. See kit_test_run() for details.
const char *name;
setup ()
teardown ()
run ()
kit_bool_t kit_test_run (KitTest **tests, size_t num_tests);
Runs a number of tests simulating Out Of Memory. Checks for both memory and file descriptor leaks.
This function is only available if libkit have been built with KIT_BUILD_TESTS.
tests :
num_tests :
Returns :
BeginLinux.com(407)-620-4092mike at beginlinux.com