logging.cpp_xml.txt (5096B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <doctest binary="all_features"> 3 <Options order_by="file" rand_seed="324" first="0" last="4294967295" abort_after="0" subcase_filter_levels="2147483647" case_sensitive="false" no_throw="false" no_skip="false"/> 4 <TestSuite> 5 <TestCase name="logging the counter of a loop" filename="logging.cpp" line="0"> 6 <Expression success="false" type="CHECK" filename="logging.cpp" line="0"> 7 <Original> 8 vec[i] != (1 << i) 9 </Original> 10 <Expanded> 11 1 != 1 12 </Expanded> 13 <Info> 14 current iteration of loop: 15 </Info> 16 <Info> 17 i := 0 18 </Info> 19 </Expression> 20 <Expression success="false" type="CHECK" filename="logging.cpp" line="0"> 21 <Original> 22 vec[i] != (1 << i) 23 </Original> 24 <Expanded> 25 2 != 2 26 </Expanded> 27 <Info> 28 current iteration of loop: 29 </Info> 30 <Info> 31 i := 1 32 </Info> 33 </Expression> 34 <Expression success="false" type="CHECK" filename="logging.cpp" line="0"> 35 <Original> 36 vec[i] != (1 << i) 37 </Original> 38 <Expanded> 39 4 != 4 40 </Expanded> 41 <Info> 42 current iteration of loop: 43 </Info> 44 <Info> 45 i := 2 46 </Info> 47 </Expression> 48 <Expression success="false" type="CHECK" filename="logging.cpp" line="0"> 49 <Original> 50 vec[i] != (1 << i) 51 </Original> 52 <Expanded> 53 8 != 8 54 </Expanded> 55 <Info> 56 current iteration of loop: 57 </Info> 58 <Info> 59 i := 3 60 </Info> 61 </Expression> 62 <Expression success="false" type="CHECK" filename="logging.cpp" line="0"> 63 <Original> 64 vec[i] != (1 << i) 65 </Original> 66 <Expanded> 67 16 != 16 68 </Expanded> 69 <Info> 70 current iteration of loop: 71 </Info> 72 <Info> 73 i := 4 74 </Info> 75 </Expression> 76 <OverallResultsAsserts successes="0" failures="5" test_case_success="false"/> 77 </TestCase> 78 <TestCase name="a test case that will end from an exception" filename="logging.cpp" line="0"> 79 <Message type="ERROR" filename="logging.cpp" line="0"> 80 <Text> 81 forcing the many captures to be stringified 82 </Text> 83 <Info> 84 lots of captures: 42 42 42; 85 </Info> 86 <Info> 87 old way of capturing - using the streaming operator: 42 42 88 </Info> 89 </Message> 90 <Expression success="false" type="CHECK" filename="logging.cpp" line="0"> 91 <Original> 92 some_var == 666 93 </Original> 94 <Expanded> 95 42 == 666 96 </Expanded> 97 <Info> 98 someTests() returned: 42 99 </Info> 100 <Info> 101 this should be printed if an exception is thrown even if no assert has failed: 42 102 </Info> 103 <Info> 104 in a nested scope this should be printed as well: 42 105 </Info> 106 <Info> 107 why is this not 666 ?! 108 </Info> 109 </Expression> 110 <Exception crash="false"> 111 0 112 </Exception> 113 <OverallResultsAsserts successes="0" failures="2" test_case_success="false"/> 114 </TestCase> 115 <TestCase name="a test case that will end from an exception and should print the unprinted context" filename="logging.cpp" line="0"> 116 <Exception crash="false"> 117 0 118 </Exception> 119 <OverallResultsAsserts successes="0" failures="0" test_case_success="false"/> 120 </TestCase> 121 <TestCase name="third party asserts can report failures to doctest" filename="logging.cpp" line="0"> 122 <Message type="ERROR" filename="logging.cpp" line="0"> 123 <Text> 124 MY_ASSERT(false) 125 </Text> 126 </Message> 127 <Message type="FATAL ERROR" filename="logging.cpp" line="0"> 128 <Text> 129 MY_ASSERT_FATAL(false) 130 </Text> 131 </Message> 132 <OverallResultsAsserts successes="0" failures="2" test_case_success="false"/> 133 </TestCase> 134 <TestCase name="explicit failures 1" filename="logging.cpp" line="0"> 135 <Message type="ERROR" filename="logging.cpp" line="0"> 136 <Text> 137 this should not end the test case, but mark it as failing 138 </Text> 139 </Message> 140 <Message type="WARNING" filename="logging.cpp" line="0"> 141 <Text> 142 reached! 143 </Text> 144 </Message> 145 <OverallResultsAsserts successes="0" failures="1" test_case_success="false"/> 146 </TestCase> 147 <TestCase name="explicit failures 2" filename="logging.cpp" line="0"> 148 <Message type="FATAL ERROR" filename="logging.cpp" line="0"> 149 <Text> 150 fail the test case and also end it 151 </Text> 152 </Message> 153 <OverallResultsAsserts successes="0" failures="1" test_case_success="false"/> 154 </TestCase> 155 </TestSuite> 156 <OverallResultsAsserts successes="0" failures="11"/> 157 <OverallResultsTestCases successes="0" failures="6"/> 158 </doctest> 159 Program code.