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

Function GetDefaultPathPrefix

OpenCppCoverage/OpenCppCoverage.cpp:53–66  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

51 {
52 //-----------------------------------------------------------------------------
53 std::wstring GetDefaultPathPrefix(const cov::Options& options)
54 {
55 const auto* startInfo = options.GetStartInfo();
56
57 if (startInfo)
58 {
59 auto path = startInfo->GetPath();
60 fs::path runningCommandFilenamePath = path.filename().replace_extension("");
61
62 return runningCommandFilenamePath.wstring();
63 }
64
65 return L"CoverageOutput";
66 }
67
68 //-------------------------------------------------------------------------
69 std::filesystem::path GetTemplateFolder()

Callers 1

ExportFunction · 0.85

Calls 1

GetStartInfoMethod · 0.80

Tested by

no test coverage detected