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

Method GetHtmlFilePath

Exporter/Html/HtmlFolderStructure.cpp:115–126  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

113
114 //---------------------------------------------------------------------
115 HtmlFile HtmlFolderStructure::GetHtmlFilePath(const std::filesystem::path& filePath) const
116 {
117 if (!optionalCurrentModule_)
118 THROW(L"No root module selected");
119
120 auto filename = filePath.filename();
121 auto output = filename.wstring() + L".html";
122 const auto& modulePath = optionalCurrentModule_->path_;
123 auto fileHtmlPath = optionalCurrentModule_->uniqueChildrenPath_.GetUniquePath(modulePath / output);
124
125 return HtmlFile{fileHtmlPath, modulePath.filename() / fileHtmlPath.filename()};
126 }
127}

Callers 2

TEST_FFunction · 0.80
ExportFileMethod · 0.80

Calls 1

GetUniquePathMethod · 0.80

Tested by 1

TEST_FFunction · 0.64