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

Function test_begin_end

test/cli/inline-suppress-polyspace_test.py:51–63  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

49
50
51def test_begin_end(tmp_path):
52 test_file = tmp_path / 'test.c'
53 with open(test_file, 'wt') as f:
54 f.write('/* polyspace-begin MISRA2012:8.2 */\n'
55 'int f();\n'
56 '/* polyspace-end MISRA2012:8.2 */\n')
57
58 args = ['--addon=misra', '--template=simple', '--enable=style,information', '--inline-suppr', 'test.c']
59
60 out_exp = ['Checking test.c ...']
61 err_exp = []
62
63 assert_cppcheck(args, ec_exp=0, err_exp=err_exp, out_exp=out_exp, cwd=str(tmp_path))

Callers

nothing calls this directly

Calls 3

assert_cppcheckFunction · 0.90
strFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected