| 1 | #cxx . . $ `<file>/tests/reflective_runner_no_teardown_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 | static int countercxx . . $ counter. = 0; |
| 8 | |
| 9 | /* this suite exercises a former crash bug in the reflective runner by not having a teardown */ |
| 10 | Describecxx . . $ contextForReflectiveNoTeardownTest.(ReflectiveNoTeardownTest); |
| 11 | |
| 12 | BeforeEachcxx . . $ `include/cgreen/unit.h:15:9`!(ReflectiveNoTeardownTest) { |
| 13 | countercxx . . $ counter. += 5; |
| 14 | } |
| 15 | |
| 16 | AfterEachcxx . . $ AfterEach_For_ReflectiveNoTeardownTest.(ReflectiveNoTeardownTest) {} |
| 17 | |
| 18 | Ensurecxx . . $ ReflectiveNoTeardownTest__before_called_implicitly_before_each_test(49f6e7a06ebc5aa8).(ReflectiveNoTeardownTest, before_called_implicitly_before_each_test) { |
| 19 | assert_thatcxx . . $ `include/cgreen/assertions.h:30:9`!(counter, is_equal_tocxx . . $ `include/cgreen/constraint_syntax_helpers.h:26:9`!(5)); |
| 20 | } |
| 21 | |
| 22 | Ensurecxx . . $ contextForReflectiveNoTeardownTest.(ReflectiveNoTeardownTest, second_test_unaffected_by_first) { |
| 23 | assert_thatcxx . . $ counter.(counter, is_equal_tocxx . . $ `include/cgreen/constraint_syntax_helpers.h:26:9`!(5)); |
| 24 | } |
| 25 | |
| 26 | TestSuitecxx . . $ TestSuite# *reflective_no_teardown_testscxx . . $ reflective_no_teardown_tests(564401a81ded3a53).(void) { |
| 27 | TestSuitecxx . . $ TestSuite# *suite = create_test_suitecxx . . $ `include/cgreen/suite.h:20:9`!(); |
| 28 | |
| 29 | add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, ReflectiveNoTeardownTest, before_called_implicitly_before_each_test); |
| 30 | add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, ReflectiveNoTeardownTest, second_test_unaffected_by_first); |
| 31 | |
| 32 | return suite; |
| 33 | } |