-------------------------------------------------------------------------
| 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 | } |
nothing calls this directly
no test coverage detected