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

Method ExportFiles

Exporter/Html/HtmlExporter.cpp:126–150  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

124
125 //---------------------------------------------------------------------
126 void HtmlExporter::ExportFiles(
127 cov::CoverageRateComputer& coverageRateComputer,
128 const Plugin::ModuleCoverage& module,
129 const HtmlFolderStructure& htmlFolderStructure,
130 ctemplate::TemplateDictionary& moduleTemplateDictionary)
131 {
132 exporter_.AddFileSectionToDictionary(
133 module.GetPath(),
134 coverageRateComputer.GetCoverageRate(module),
135 true,
136 nullptr,
137 moduleTemplateDictionary);
138
139 for (const auto& file : coverageRateComputer.SortFilesByCoverageRate(module))
140 {
141 const auto& fileCoverageRate = coverageRateComputer.GetCoverageRate(*file);
142 boost::optional<fs::path> generatedOutput = ExportFile(htmlFolderStructure, *file);
143 exporter_.AddFileSectionToDictionary(
144 file->GetPath(),
145 fileCoverageRate,
146 false,
147 generatedOutput.get_ptr(),
148 moduleTemplateDictionary);
149 }
150 }
151
152 //---------------------------------------------------------------------
153 boost::optional<fs::path> HtmlExporter::ExportFile(

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected