MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / defaults

Method defaults

test/testoptions.cpp:83–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82
83 void defaults() const {
84 const char* argv[] = {"./test_runner", "TestClass::TestMethod"};
85 options args(getArrayLength(argv), argv);
86 ASSERT_EQUALS(false, args.quiet());
87 ASSERT_EQUALS(false, args.help());
88 ASSERT_EQUALS(true, args.summary());
89 ASSERT_EQUALS(false, args.dry_run());
90 ASSERT_EQUALS(false, args.exclude_tests());
91 ASSERT(args.errors().empty());
92 }
93
94 void quiet() const {
95 const char* argv[] = {"./test_runner", "TestClass::TestMethod", "-q"};

Callers

nothing calls this directly

Calls 7

getArrayLengthFunction · 0.85
quietMethod · 0.45
helpMethod · 0.45
summaryMethod · 0.45
dry_runMethod · 0.45
exclude_testsMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected