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

Function TEST

CppCoverageTest/DebugInformationEnumeratorTest.cpp:80–97  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

78
79 //-------------------------------------------------------------------------
80 TEST(DebugInformationEnumeratorTest, Enumerate)
81 {
82 auto selectedPath =
83 TestCoverageConsole::GetDebugInformationEnumeratorTestPath();
84 DebugInformationHandlerMock debugInformationHandler{
85 selectedPath.filename()};
86
87 CppCoverage::DebugInformationEnumerator debugInformationEnumerator{ {} };
88
89 auto binary = TestCoverageConsole::GetOutputBinaryPath();
90 ASSERT_TRUE(debugInformationEnumerator.Enumerate(
91 binary, debugInformationHandler));
92
93 auto lineWithDebugInfo = GetLineNumbersWithTag(
94 debugInformationHandler.selectedFullPath_, L"@DebugInfoExpected");
95
96 ASSERT_EQ(debugInformationHandler.lines_, lineWithDebugInfo);
97 }
98}

Callers

nothing calls this directly

Calls 4

GetLineNumbersWithTagFunction · 0.85
EnumerateMethod · 0.80
GetOutputBinaryPathFunction · 0.50

Tested by

no test coverage detected