-------------------------------------------------------------------------
| 189 | |
| 190 | //------------------------------------------------------------------------- |
| 191 | void |
| 192 | ExporterPluginManager::Export(const std::wstring& pluginName, |
| 193 | const Plugin::CoverageData& coverageData, |
| 194 | const std::optional<std::wstring>& argument) const |
| 195 | { |
| 196 | auto it = plugins_.find(pluginName); |
| 197 | if (it == plugins_.end()) |
| 198 | THROW("Cannot find plugin: " << pluginName); |
| 199 | auto& plugin = it->second; |
| 200 | |
| 201 | auto optionalOutput = CallPluginfunction( |
| 202 | [&]() { return plugin->Get().Export(coverageData, argument); }, |
| 203 | "Export", |
| 204 | pluginFolder_ / pluginName); |
| 205 | if (optionalOutput) |
| 206 | { |
| 207 | Tools::ShowOutputMessage( |
| 208 | pluginName + L" has generated the report at ", *optionalOutput); |
| 209 | } |
| 210 | } |
| 211 | } |
nothing calls this directly
no test coverage detected