MCPcopy Create free account
hub / github.com/OpenCppCoverage/OpenCppCoverage / operator[]

Method operator[]

Plugin/Exporter/FileCoverage.cpp:61–69  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

59
60 //-------------------------------------------------------------------------
61 const LineCoverage* FileCoverage::operator[](unsigned int line) const
62 {
63 auto it = lines_.find(line);
64
65 if (it == lines_.end())
66 return 0;
67
68 return &it->second;
69 }
70
71 //-------------------------------------------------------------------------
72 std::vector<LineCoverage> FileCoverage::GetLines() const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected