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

Method GetDefaultPath

Exporter/Html/HtmlExporter.cpp:67–76  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

65
66 //-------------------------------------------------------------------------
67 std::filesystem::path HtmlExporter::GetDefaultPath(const std::wstring&) const
68 {
69 auto now = std::time(nullptr);
70 auto localNow = std::localtime(&now);
71 std::ostringstream ostr;
72
73 ostr << "CoverageReport-" << std::put_time(localNow, "%Y-%m-%d-%Hh%Mm%Ss");
74
75 return ostr.str();
76 }
77
78 //-------------------------------------------------------------------------
79 void HtmlExporter::Export(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected