---------------------------------------------------------------------
| 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( |
nothing calls this directly
no test coverage detected