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

Method versionExclusive

test/testcmdlineparser.cpp:668–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666 // TODO: test --version with extraVersion
667
668 void versionExclusive() {
669 REDIRECT;
670 const char * const argv[] = {"cppcheck", "--library=missing", "--version"};
671 ASSERT_EQUALS_ENUM(CmdLineParser::Result::Exit, parseFromArgs(argv));
672 ASSERT(logger->str().compare(0, 11, "Cppcheck 2.") == 0);
673 }
674
675 void checkVersionCorrect() {
676 REDIRECT;

Callers

nothing calls this directly

Calls 2

compareMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected