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

Function run_and_assert_cppcheck

test/cli/other_test.py:4371–4375  ·  view source on GitHub ↗
(stdout_exp)

Source from the content-addressed store, hash-verified

4369 ]
4370
4371 def run_and_assert_cppcheck(stdout_exp):
4372 exitcode, stdout, stderr = cppcheck(args)
4373 assert exitcode == 0, stdout
4374 assert stdout.splitlines() == stdout_exp
4375 assert stderr.splitlines() == stderr_exp
4376
4377 test_file_s = str(test_file).replace('\\', '/')
4378 test_a1_file_s = str(test_a1_file).replace('\\', '/')

Callers 1

test_analyzerinfoFunction · 0.85

Calls 1

cppcheckFunction · 0.90

Tested by

no test coverage detected