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

Method GetLines

FileFilter/LineFilter.cpp:84–96  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

82
83 //-------------------------------------------------------------------------
84 const std::vector<std::string>* LineFilter::GetLines(
85 const std::filesystem::path& path)
86 {
87 if (path != filePath_)
88 {
89 mappedFileForFilePath_ = Tools::MappedFile::TryCreate(path);
90 if (mappedFileForFilePath_)
91 ++fileReadCount_;
92 filePath_ = path;
93 }
94
95 return mappedFileForFilePath_ ? &mappedFileForFilePath_->GetLines() : nullptr;
96 }
97
98 //-------------------------------------------------------------------------
99 int LineFilter::GetFileReadCount() const

Callers 12

FillFileTreeFunction · 0.45
InitializeProtoBuffFromFunction · 0.45
ComputeFileCoverageFunction · 0.45
AddFileCoverageToFunction · 0.45
CountExecutedLinesMethod · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
AssertFilesEqualsFunction · 0.45
ExportMethod · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 5

CountExecutedLinesMethod · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36