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

Function TEST

CppCoverageTest/OptionsParserConfigTest.cpp:62–75  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

60
61 //-------------------------------------------------------------------------
62 TEST(OptionsParserConfigTest, ConfigurationFileMultipleValue)
63 {
64 const std::wstring source1 = L"s1";
65 const std::wstring source2 = L"s2";
66
67 auto options = MutipleSourceParse(
68 { { cov::ProgramOptions::SelectedSourcesOption, source1 }, { cov::ProgramOptions::SelectedSourcesOption, source2 } },
69 {});
70 ASSERT_TRUE(static_cast<bool>(options));
71 const auto& sourcePatterns = options->GetSourcePatterns().GetSelectedPatterns();
72 ASSERT_EQ(2, sourcePatterns.size());
73 ASSERT_EQ(source1, sourcePatterns[0]);
74 ASSERT_EQ(source2, sourcePatterns[1]);
75 }
76
77 //-------------------------------------------------------------------------
78 TEST(OptionsParserConfigTest, ConfigurationFileCmdLineOverride)

Callers

nothing calls this directly

Calls 3

MutipleSourceParseFunction · 0.85
GetStartInfoMethod · 0.80
GetWorkingDirectoryMethod · 0.80

Tested by

no test coverage detected