| 102 | } |
| 103 | |
| 104 | TEST(BranchCoverage, DefaultsForUntrackedId) { |
| 105 | auto coverage = CreateBranchCoverage(TestExpression()); |
| 106 | |
| 107 | using Stats = BranchCoverage::NodeCoverageStats; |
| 108 | |
| 109 | EXPECT_THAT(coverage->StatsForNode(99), |
| 110 | MatchesNodeStats(Stats{/*is_boolean=*/false, |
| 111 | /*evaluation_count=*/0, |
| 112 | /*boolean_true_count=*/0, |
| 113 | /*boolean_false_count=*/0, |
| 114 | /*error_count=*/0})); |
| 115 | } |
| 116 | |
| 117 | TEST(BranchCoverage, Record) { |
| 118 | auto coverage = CreateBranchCoverage(TestExpression()); |
nothing calls this directly
no test coverage detected