| 1 | #cxx . . $ `<file>/tests/reflective_tests.c`/include <cgreen/cgreen.h>cxx . . $ `<file>/include/cgreen/cgreen.h`/ |
| 2 | #ifdef __cpluspluscxx . . $ `<built-in>:440:9`! |
| 3 | using namespace cgreen; |
| 4 | #endif |
| 5 | |
| 6 | static int countercxx . . $ counter. = 0; |
| 7 | |
| 8 | Describecxx . . $ setupReflectiveRunner(49f6e7a06ebc5aa8).(ReflectiveRunner); |
| 9 | |
| 10 | BeforeEachcxx . . $ BeforeEach_For_ReflectiveRunner_Function(49f6e7a06ebc5aa8).(ReflectiveRunner) { |
| 11 | countercxx . . $ counter. += 5; |
| 12 | } |
| 13 | |
| 14 | AfterEachcxx . . $ AfterEach_For_ReflectiveRunner.(ReflectiveRunner) { |
| 15 | countercxx . . $ counter. += 1; |
| 16 | } |
| 17 | |
| 18 | Ensurecxx . . $ `include/cgreen/unit.h:25:9`!(ReflectiveRunner, calls_setup_before_each_test) { |
| 19 | assert_thatcxx . . $ intptr_t#(counter, is_equal_tocxx . . $ `include/cgreen/constraint_syntax_helpers.h:26:9`!(5)); |
| 20 | } |
| 21 | |
| 22 | Ensurecxx . . $ CgreenTest#(ReflectiveRunner, running_first_test_does_not_affect_second_test) { |
| 23 | assert_thatcxx . . $ `include/cgreen/assertions.h:30:9`!(counter, is_equal_tocxx . . $ `include/cgreen/constraint_syntax_helpers.h:26:9`!(5)); |
| 24 | } |
| 25 | |
| 26 | TestSuitecxx . . $ TestSuite# *reflective_testscxx . . $ reflective_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, ReflectiveRunner, calls_setup_before_each_test); |
| 30 | add_test_with_contextcxx . . $ `include/cgreen/suite.h:23:9`!(suite, ReflectiveRunner, running_first_test_does_not_affect_second_test); |
| 31 | |
| 32 | return suite; |
| 33 | } |