Branch Coverage

t/test.cc
Criterion Covered Total %
branch 95 234 40.6


line true false branch
4 1 0 TEST_CASE("a", "[single]") {
5 3 0 REQUIRE(1);
3 0 REQUIRE(1);
3 0 REQUIRE(1);
3 0 REQUIRE(1);
0 0 REQUIRE(1);
0 0 REQUIRE(1);
8 1 0 TEST_CASE("b", "[single]") {
9 2 0 REQUIRE(1);
2 0 REQUIRE(1);
2 0 REQUIRE(1);
2 0 REQUIRE(1);
0 0 REQUIRE(1);
0 0 REQUIRE(1);
12 1 0 TEST_CASE("c", "[single][s3]") {
13 2 0 REQUIRE(1);
2 0 REQUIRE(1);
2 0 REQUIRE(1);
2 0 REQUIRE(1);
0 0 REQUIRE(1);
0 0 REQUIRE(1);
14 2 0 REQUIRE(1);
2 0 REQUIRE(1);
2 0 REQUIRE(1);
2 0 REQUIRE(1);
0 0 REQUIRE(1);
0 0 REQUIRE(1);
15 2 0 REQUIRE(1);
2 0 REQUIRE(1);
2 0 REQUIRE(1);
2 0 REQUIRE(1);
0 0 REQUIRE(1);
0 0 REQUIRE(1);
18 1 0 TEST_CASE("d", "[multi]") {
19 6 0 SECTION("subtest1") {
6 0 SECTION("subtest1") {
6 0 SECTION("subtest1") {
3 3 SECTION("subtest1") {
20 3 0 std::string s = "hello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello world";
21 3 0 REQUIRE(s == "hello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello world");
3 0 REQUIRE(s == "hello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello world");
3 0 REQUIRE(s == "hello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello world");
3 0 REQUIRE(s == "hello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello world");
3 0 REQUIRE(s == "hello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello world");
0 0 REQUIRE(s == "hello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello world");
0 0 REQUIRE(s == "hello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello worldhello world");
22 3 0 REQUIRE(1);
3 0 REQUIRE(1);
3 0 REQUIRE(1);
3 0 REQUIRE(1);
0 0 REQUIRE(1);
0 0 REQUIRE(1);
24 6 0 SECTION("subtest2") {
6 0 SECTION("subtest2") {
6 0 SECTION("subtest2") {
3 3 SECTION("subtest2") {
25 3 0 REQUIRE(1);
3 0 REQUIRE(1);
3 0 REQUIRE(1);
3 0 REQUIRE(1);
0 0 REQUIRE(1);
0 0 REQUIRE(1);
29 1 0 TEST_CASE("e", "[multi]") {
32 9 0 REQUIRE(cnt);
9 0 REQUIRE(cnt);
9 0 REQUIRE(cnt);
9 0 REQUIRE(cnt);
0 0 REQUIRE(cnt);
0 0 REQUIRE(cnt);
33 9 0 SECTION("subtest1") {
9 0 SECTION("subtest1") {
9 0 SECTION("subtest1") {
6 3 SECTION("subtest1") {
34 6 0 SECTION("sst1") {
6 0 SECTION("sst1") {
6 0 SECTION("sst1") {
3 3 SECTION("sst1") {
35 3 0 REQUIRE(cnt);
3 0 REQUIRE(cnt);
3 0 REQUIRE(cnt);
3 0 REQUIRE(cnt);
0 0 REQUIRE(cnt);
0 0 REQUIRE(cnt);
37 6 0 SECTION("sst2") {
6 0 SECTION("sst2") {
6 0 SECTION("sst2") {
3 3 SECTION("sst2") {
38 3 0 REQUIRE(cnt);
3 0 REQUIRE(cnt);
3 0 REQUIRE(cnt);
3 0 REQUIRE(cnt);
0 0 REQUIRE(cnt);
0 0 REQUIRE(cnt);
41 9 0 SECTION("subtest2") {
9 0 SECTION("subtest2") {
9 0 SECTION("subtest2") {
3 6 SECTION("subtest2") {
42 3 0 REQUIRE(cnt);
3 0 REQUIRE(cnt);
3 0 REQUIRE(cnt);
3 0 REQUIRE(cnt);
0 0 REQUIRE(cnt);
0 0 REQUIRE(cnt);
43 3 0 REQUIRE(cnt);
3 0 REQUIRE(cnt);
3 0 REQUIRE(cnt);
3 0 REQUIRE(cnt);
0 0 REQUIRE(cnt);
0 0 REQUIRE(cnt);
45 9 0 REQUIRE(cnt);
9 0 REQUIRE(cnt);
9 0 REQUIRE(cnt);
9 0 REQUIRE(cnt);
0 0 REQUIRE(cnt);
0 0 REQUIRE(cnt);
46 1 0 }
1 0 }