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

Function TEST

ExporterTest/BinaryExporterTest.cpp:30–40  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

28{
29 //-------------------------------------------------------------------------
30 TEST(BinaryExporterTest, SubFolderDoesNotExist)
31 {
32 Plugin::CoverageData coverageData{ L"", 0 };
33
34 TestHelper::TemporaryPath output;
35 auto outputPath = output.GetPath() / "SubFolder" / "output.cov";
36
37 ASSERT_FALSE(Tools::FileExists(outputPath));
38 Exporter::BinaryExporter().Export(coverageData, outputPath);
39 ASSERT_TRUE(Tools::FileExists(outputPath));
40 }
41
42 //-------------------------------------------------------------------------
43 TEST(BinaryExporterTest, OutputExists)

Callers

nothing calls this directly

Calls 3

FileExistsFunction · 0.85
ASSERT_NO_THROWFunction · 0.85
ExportMethod · 0.45

Tested by

no test coverage detected