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

Method which_test_method

test/testoptions.cpp:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62
63 void which_test_method() const {
64 const char* argv[] = {"./test_runner", "TestClass::TestMethod"};
65 options args(getArrayLength(argv), argv);
66 const std::map<std::string, std::set<std::string>> expected{
67 { "TestClass", {"TestMethod"} }
68 };
69 ASSERT(expected == args.which_tests());
70 ASSERT(args.errors().empty());
71 }
72
73
74 void no_test_method() const {

Callers

nothing calls this directly

Calls 2

getArrayLengthFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected