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

Method errorlist

test/testcmdlineparser.cpp:2268–2276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2266 }
2267
2268 void errorlist() {
2269 REDIRECT;
2270 const char * const argv[] = {"cppcheck", "--errorlist"};
2271 ASSERT_EQUALS_ENUM(CmdLineParser::Result::Exit, parseFromArgs(argv));
2272 const std::string errout_s = GET_REDIRECT_OUTPUT;
2273 ASSERT_EQUALS("", logger->str()); // empty since it is logged via ErrorLogger
2274 ASSERT(startsWith(errout_s, ErrorMessage::getXMLHeader("")));
2275 ASSERT(endsWith(errout_s, "</results>\n"));
2276 }
2277
2278 void errorlistWithCfg() {
2279 REDIRECT;

Callers

nothing calls this directly

Calls 3

startsWithFunction · 0.50
endsWithFunction · 0.50
strMethod · 0.45

Tested by

no test coverage detected