-------------------------------------------------------------------------
| 40 | |
| 41 | //------------------------------------------------------------------------- |
| 42 | void FileCoverage::UpdateLine(unsigned int lineNumber, bool hasBeenExecuted) |
| 43 | { |
| 44 | if (!lines_.erase(lineNumber)) |
| 45 | { |
| 46 | throw std::runtime_error( |
| 47 | "Line " + std::to_string(lineNumber) + |
| 48 | " does not exists and cannot be updated for " + path_.string()); |
| 49 | } |
| 50 | |
| 51 | AddLine(lineNumber, hasBeenExecuted); |
| 52 | } |
| 53 | |
| 54 | //------------------------------------------------------------------------- |
| 55 | const std::filesystem::path& FileCoverage::GetPath() const |