(tmp_path)
| 21 | |
| 22 | |
| 23 | def 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 | |
| 36 | def test_block(tmp_path): |
nothing calls this directly
no test coverage detected