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

Function GenerateTemplate

Exporter/Html/TemplateHtmlExporter.cpp:65–75  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

63
64 //-------------------------------------------------------------------------
65 std::string GenerateTemplate(
66 const ctemplate::TemplateDictionary& templateDictionary,
67 const fs::path& templatePath)
68 {
69 std::string output;
70
71 if (!ctemplate::ExpandTemplate(templatePath.string(), ctemplate::DO_NOT_STRIP, &templateDictionary, &output))
72 THROW(L"Cannot generate output for " + templatePath.wstring());
73
74 return output;
75 }
76
77 //-------------------------------------------------------------------------
78 void WriteTemplate(

Callers 1

WriteTemplateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected