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

Method version

test/testcmdlineparser.cpp:646–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644 }
645
646 void version() {
647 REDIRECT;
648 const char * const argv[] = {"cppcheck", "--version"};
649 ASSERT_EQUALS_ENUM(CmdLineParser::Result::Exit, parseFromArgs(argv));
650 ASSERT(logger->str().compare(0, 11, "Cppcheck 2.") == 0);
651 }
652
653 void versionWithCfg() {
654 REDIRECT;

Callers

nothing calls this directly

Calls 2

compareMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected