-------------------------------------------------------------------------
| 24 | { |
| 25 | //------------------------------------------------------------------------- |
| 26 | TEST(CoverageRateTest, BasicAccessors) |
| 27 | { |
| 28 | const int executedLinesCount = 42; |
| 29 | const int unexecutedLinesCount = 10; |
| 30 | |
| 31 | cov::CoverageRate rate{ executedLinesCount, unexecutedLinesCount }; |
| 32 | |
| 33 | ASSERT_EQ(executedLinesCount + unexecutedLinesCount, rate.GetTotalLinesCount()); |
| 34 | ASSERT_EQ((100 * executedLinesCount) / (executedLinesCount + unexecutedLinesCount), rate.GetPercentRate()); |
| 35 | } |
| 36 | |
| 37 | //------------------------------------------------------------------------- |
| 38 | TEST(CoverageRateTest, Add) |
nothing calls this directly
no test coverage detected