| 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; |
nothing calls this directly
no test coverage detected