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

Function WriteContentTo

Exporter/Html/TemplateHtmlExporter.cpp:54–62  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

52
53 //-------------------------------------------------------------------------
54 void WriteContentTo(const std::string& content, const fs::path& path)
55 {
56 std::ofstream ofs(path.string(), std::ios::binary);
57
58 if (!ofs)
59 THROW(L"Cannot open file" << path);
60 ofs << content;
61 ofs.flush();
62 }
63
64 //-------------------------------------------------------------------------
65 std::string GenerateTemplate(

Callers 1

WriteTemplateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected