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

Function assert_cppcheck

test/cli/testutils.py:256–265  ·  view source on GitHub ↗
(args, ec_exp=None, out_exp=None, err_exp=None, env=None, cwd=None)

Source from the content-addressed store, hash-verified

254
255
256def assert_cppcheck(args, ec_exp=None, out_exp=None, err_exp=None, env=None, cwd=None):
257 exitcode, stdout, stderr = cppcheck(args, env=env, cwd=cwd)
258 if ec_exp is not None:
259 assert exitcode == ec_exp, stdout
260 if out_exp is not None:
261 out_lines = stdout.splitlines()
262 assert out_lines == out_exp, out_lines
263 if err_exp is not None:
264 err_lines = stderr.splitlines()
265 assert err_lines == err_exp, err_lines

Callers 15

test_logFunction · 0.90
test_1Function · 0.90
test_blockFunction · 0.90
test_begin_endFunction · 0.90
test_project_file_filterFunction · 0.90
test_project_file_ignoreFunction · 0.90

Calls 1

cppcheckFunction · 0.85

Tested by

no test coverage detected