In the upper example, test_1 and test_2 is declared as
void test_1(void **state __attribute__((unused))); // gccvoid test_2(void **state __attribute__((unused)));
or
void test_1(void **state); // non gccvoid test_2(void **state);
The helper is attatched in this file. To use this helper, we need compile unit_tests.c with cmockery_easy.c and cmockery_easy_repeater.h in cmockery-easy.7z.
The helper use the macro __LINE__ as an identifier, so when writing a unit test source with more than 2048 lines, we should use "repeater_gen.c" in cmockery-easy.7z to generate a new "cmockery_easy_repeater.h" with custom parameters.