MCPcopy Create free account
hub / github.com/OpenCppCoverage/OpenCppCoverage / UpdateLine

Method UpdateLine

Plugin/Exporter/FileCoverage.cpp:42–52  ·  view source on GitHub ↗

-------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

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

Callers 2

AddFileCoverageToFunction · 0.80
TESTFunction · 0.80

Calls 1

AddLineFunction · 0.85

Tested by 1

TESTFunction · 0.64