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

Function GetLines

ToolsTest/MappedFileTest.cpp:39–48  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

37
38 //---------------------------------------------------------------------
39 std::vector<std::string> GetLines(const std::filesystem::path& path)
40 {
41 std::ifstream ifs(path.wstring());
42 std::vector<std::string> lines;
43 std::string line;
44
45 while (std::getline(ifs, line))
46 lines.push_back(line);
47 return lines;
48 }
49 }
50
51 //---------------------------------------------------------------------

Callers 2

IsLineSelectedMethod · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected