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

Method multiple_testcases

test/testoptions.cpp:116–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 }
115
116 void multiple_testcases() const {
117 const char* argv[] = {"./test_runner", "TestClass::TestMethod", "TestClass::AnotherTestMethod"};
118 options args(getArrayLength(argv), argv);
119 const std::map<std::string, std::set<std::string>> expected{
120 { "TestClass", { "TestMethod", "AnotherTestMethod" } }
121 };
122 ASSERT(expected == args.which_tests());
123 ASSERT(args.errors().empty());
124 }
125
126 void multiple_testcases_ignore_duplicates() const {
127 const char* argv[] = {"./test_runner", "TestClass::TestMethod", "TestClass"};

Callers

nothing calls this directly

Calls 2

getArrayLengthFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected