2024-03-09 20:17:04 +00:00
|
|
|
/*
|
|
|
|
* Author: username
|
|
|
|
* Date: todays_date
|
|
|
|
* filename: test_module_name.c
|
|
|
|
* description: module_purpose
|
|
|
|
*/
|
|
|
|
|
2024-03-01 06:49:19 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <setjmp.h>
|
|
|
|
#include <cmocka.h>
|
2024-03-09 20:17:04 +00:00
|
|
|
|
|
|
|
/*Including the code under test*/
|
|
|
|
#include "module_name.h"
|
|
|
|
|
|
|
|
|
2024-03-01 06:49:19 +00:00
|
|
|
/* A test case that does nothing and succeeds. */
|
|
|
|
static void null_test_success(void **state) {
|
|
|
|
(void) state; /* unused */
|
|
|
|
}
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
const struct CMUnitTest tests[] = {
|
|
|
|
cmocka_unit_test(null_test_success),
|
|
|
|
};
|
|
|
|
return cmocka_run_group_tests(tests, NULL, NULL);
|
|
|
|
}
|