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

Function GetStyle

Exporter/Html/HtmlFileCoverageExporter.cpp:46–54  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

44
45 //---------------------------------------------------------------------
46 std::wstring GetStyle(const Plugin::LineCoverage* lineCoverage)
47 {
48 if (!lineCoverage)
49 return L"";
50
51 return (lineCoverage->HasBeenExecuted())
52 ? HtmlFileCoverageExporter::StyleBackgroundColorExecuted
53 : HtmlFileCoverageExporter::StyleBackgroundColorUnexecuted;
54 }
55
56 //---------------------------------------------------------------------
57 void AddEndStyleIfNeeded(

Callers 1

AddLineCoverageColorFunction · 0.85

Calls 1

HasBeenExecutedMethod · 0.80

Tested by

no test coverage detected