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

Method helpshort

test/testcmdlineparser.cpp:586–591  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584 }
585
586 void helpshort() {
587 REDIRECT;
588 const char * const argv[] = {"cppcheck", "-h"};
589 ASSERT_EQUALS_ENUM(CmdLineParser::Result::Exit, parseFromArgs(argv));
590 ASSERT(startsWith(logger->str(), "Cppcheck - A tool for static C/C++ code analysis"));
591 }
592
593 void helpshortExclusive() {
594 REDIRECT;

Callers

nothing calls this directly

Calls 2

startsWithFunction · 0.50
strMethod · 0.45

Tested by

no test coverage detected