(tmp_path)
| 49 | |
| 50 | |
| 51 | def 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)) |
nothing calls this directly
no test coverage detected