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

Function TEST

ToolsTest/MappedFileTest.cpp:52–58  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

50
51 //---------------------------------------------------------------------
52 TEST(MappedFileTest, GetLine)
53 {
54 auto path = CreateFile({ "\r\n", "abc\r\n", "123\n" });
55 auto file = Tools::MappedFile::TryCreate(path->GetPath());
56 auto expectedLines = GetLines(*path);
57 ASSERT_EQ(expectedLines, file->GetLines());
58 }
59
60 //---------------------------------------------------------------------
61 TEST(MappedFileTest, EmptyFile)

Callers

nothing calls this directly

Calls 3

CreateFileFunction · 0.85
GetLinesFunction · 0.85
GetLinesMethod · 0.45

Tested by

no test coverage detected