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

Function RunCoverage

OpenCppCoverageTest/ImportExportTests.cpp:47–59  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

45
46 //---------------------------------------------------------------------
47 void RunCoverage(
48 std::vector<std::pair<std::string, std::string>> coverageArguments,
49 const std::filesystem::path& output)
50 {
51 fs::path testCoverageConsole = TestCoverageConsole::GetOutputBinaryPath();
52
53 AddDefaultFilters(coverageArguments, testCoverageConsole);
54 coverageArguments.emplace_back(cov::ProgramOptions::QuietOption, "");
55 int exitCode = RunCoverageFor(coverageArguments, testCoverageConsole, {});
56
57 ASSERT_EQ(0, exitCode);
58 ASSERT_TRUE(Tools::FileExists(output));
59 }
60
61 //---------------------------------------------------------------------
62 void RunCoverage(const std::string& exportType)

Callers 1

TESTFunction · 0.85

Calls 5

AddDefaultFiltersFunction · 0.85
RunCoverageForFunction · 0.85
FileExistsFunction · 0.85
BuildExportTypeStringFunction · 0.85
GetOutputBinaryPathFunction · 0.50

Tested by

no test coverage detected