-------------------------------------------------------------------------
| 28 | |
| 29 | //------------------------------------------------------------------------- |
| 30 | void FileCoverage::AddLine(unsigned int lineNumber, bool hasBeenExecuted) |
| 31 | { |
| 32 | LineCoverage line{ lineNumber, hasBeenExecuted }; |
| 33 | |
| 34 | if (!lines_.emplace(lineNumber, line).second) |
| 35 | { |
| 36 | throw std::runtime_error("Line " + std::to_string(lineNumber) + |
| 37 | " already exists for " + path_.string()); |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | //------------------------------------------------------------------------- |
| 42 | void FileCoverage::UpdateLine(unsigned int lineNumber, bool hasBeenExecuted) |
no outgoing calls