Debian Codegraph @

tests/multiple_suite_tests.c

raw symbols SCIP
1 #cxx . . $ `<file>/tests/multiple_suite_tests.c`/include <cgreen/cgreen.h>cxx . . $ `<file>/include/cgreen/cgreen.h`/
2
3 #ifdef __cpluspluscxx . . $ `<built-in>:440:9`!
4 using namespace cgreen;
5 #endif
6
7 // This funciton exemplifies infrastructure common between multiple suits
8 static int common_func_btw_SUTscxx . . $ common_func_btw_SUTs(b126dc7c1de90089).(void) {
9 return 0;
10 }
11
12 // Suite A and its unit test
13 Describecxx . . $ Dummy_SuiteA_t#(SuiteA);
14 BeforeEachcxx . . $ `include/cgreen/unit.h:15:9`!(SuiteA) {}
15 AfterEachcxx . . $ AfterEach_For_SuiteA.(SuiteA) {}
16
17 Ensurecxx . . $ `include/cgreen/unit.h:25:9`!(SuiteA, ut_a) {
18 int num = common_func_btw_SUTscxx . . $ common_func_btw_SUTs(b126dc7c1de90089).();
19 assert_thatcxx . . $ `include/cgreen/assertions.h:30:9`!(num, is_equal_tocxx . . $ `include/cgreen/constraint_syntax_helpers.h:26:9`!(0));
20 }
21
22 // Suite B and its unit test
23 Describecxx . . $ contextForSuiteB.(SuiteB);
24 BeforeEachcxx . . $ `include/cgreen/unit.h:15:9`!(SuiteB) {}
25 AfterEachcxx . . $ AfterEach_For_SuiteB.(SuiteB) {}
26
27 Ensurecxx . . $ CgreenSpec__SuiteB__ut_b__.(SuiteB, ut_b) {
28 int num = common_func_btw_SUTscxx . . $ common_func_btw_SUTs(b126dc7c1de90089).();
29 assert_thatcxx . . $ intptr_t#(num, is_equal_tocxx . . $ `include/cgreen/constraint_syntax_helpers.h:26:9`!(0));
30 }
31
32 TestSuitecxx . . $ TestSuite# *test_suite_acxx . . $ test_suite_a(564401a81ded3a53).(void) {
33 TestSuitecxx . . $ TestSuite# *suite = create_test_suitecxx . . $ `include/cgreen/suite.h:20:9`!();
34 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, SuiteA, ut_a);
35 run_test_suitecxx . . $ run_test_suite(963404fcd5b06580).(suite, create_text_reportercxx . . $ create_text_reporter(a6a8ef953e197a65).());
36 return suite;
37 }
38
39 TestSuitecxx . . $ TestSuite# *test_suite_bcxx . . $ test_suite_b(564401a81ded3a53).(void) {
40 TestSuitecxx . . $ TestSuite# *suite = create_test_suitecxx . . $ `include/cgreen/suite.h:20:9`!();
41 add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, SuiteB, ut_b);
42 run_test_suitecxx . . $ run_test_suite(963404fcd5b06580).(suite, create_text_reportercxx . . $ create_text_reporter(a6a8ef953e197a65).());
43 return suite;
44 }