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

Method Export

Exporter/Plugin/ExporterPluginManager.cpp:191–210  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 2

CallPluginfunctionFunction · 0.85
ShowOutputMessageFunction · 0.85

Tested by

no test coverage detected