unitc
A simple unit testing library for C.
unitc.h
Go to the documentation of this file.
1 
5 #include <stdint.h>
6 #include <stdbool.h>
7 
11 #define UC_OPT_NONE (0)
17 typedef struct uc_suite *uc_suite;
18 
19 
30 uc_suite uc_init(const uint_least8_t options, const char *name,
31  const char *comment);
32 
38 void uc_free(uc_suite suite);
39 
50 void uc_check(uc_suite suite, const bool cond, const char *comment);
51 
65 void uc_add_test(uc_suite suite, void (*test_func)(uc_suite suite),
66  const char *name, const char *comment);
67 
72 void uc_run_tests(uc_suite suite);
73 
83 bool uc_all_tests_passed(uc_suite suite);
84 
96 void uc_report_basic(uc_suite suite);
97 
111 void uc_report_standard(uc_suite suite);
112 
void uc_run_tests(uc_suite suite)
void uc_add_test(uc_suite suite, void(*test_func)(uc_suite suite), const char *name, const char *comment)
uc_suite uc_init(const uint_least8_t options, const char *name, const char *comment)
void uc_free(uc_suite suite)
struct uc_suite * uc_suite
Definition: unitc.h:17
void uc_report_basic(uc_suite suite)
void uc_report_standard(uc_suite suite)
void uc_check(uc_suite suite, const bool cond, const char *comment)
bool uc_all_tests_passed(uc_suite suite)