-------------------------------------------------------------------------
| 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) |
nothing calls this directly
no test coverage detected