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

Function TEST

CppCoverageTest/OptionsParserTest.cpp:39–53  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

37
38 //-------------------------------------------------------------------------
39 TEST(OptionsParserTest, Default)
40 {
41 cov::OptionsParser parser;
42
43 auto options = TestTools::Parse(parser, {});
44 ASSERT_TRUE(static_cast<bool>(options));
45 ASSERT_EQ(cov::LogLevel::Normal, options->GetLogLevel());
46 ASSERT_FALSE(options->IsPlugingModeEnabled());
47 ASSERT_FALSE(options->IsCoverChildrenModeEnabled());
48 ASSERT_TRUE(options->IsAggregateByFileModeEnabled());
49 ASSERT_FALSE(options->IsContinueAfterCppExceptionModeEnabled());
50 ASSERT_FALSE(options->IsOptimizedBuildSupportEnabled());
51 ASSERT_TRUE(options->GetExcludedLineRegexes().empty());
52 ASSERT_TRUE(options->GetSubstitutePdbSourcePaths().empty());
53 }
54
55 //-------------------------------------------------------------------------
56 TEST(OptionsParserTest, Help)

Callers

nothing calls this directly

Calls 14

GetOptionPrefixFunction · 0.85
LocalToWStringFunction · 0.85
GetProgramToRunFunction · 0.85
GetLogLevelMethod · 0.80
IsPlugingModeEnabledMethod · 0.80
GetStartInfoMethod · 0.80

Tested by

no test coverage detected