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

Function test_1

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

Source from the content-addressed store, hash-verified

21
22
23def test_1(tmp_path):
24 test_file = tmp_path / 'test.c'
25 with open(test_file, 'wt') as f:
26 f.write('int f(); /* polyspace MISRA2012:8.2 */\n')
27
28 args = ['--addon=misra', '--template=simple', '--enable=style,information', '--inline-suppr', 'test.c']
29
30 out_exp = ['Checking test.c ...']
31 err_exp = []
32
33 assert_cppcheck(args, ec_exp=0, err_exp=err_exp, out_exp=out_exp, cwd=str(tmp_path))
34
35
36def test_block(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