-------------------------------------------------------------------------
| 52 | |
| 53 | //------------------------------------------------------------------------- |
| 54 | double CoverageRate::GetRate() const |
| 55 | { |
| 56 | auto totalLines = executedLinesCount_ + unexecutedLinesCount_; |
| 57 | |
| 58 | if (totalLines == 0) |
| 59 | return 1.0; |
| 60 | return static_cast<double>(executedLinesCount_) / totalLines; |
| 61 | } |
| 62 | |
| 63 | //------------------------------------------------------------------------- |
| 64 | int CoverageRate::GetPercentRate() const |
no outgoing calls