(tmpdir)
| 116 | __check_ast(tmpdir, 'struct S { int x; }; S* foo() { return new S(); }') |
| 117 | |
| 118 | def test_log(tmpdir): |
| 119 | test_file = os.path.join(tmpdir, 'test.cpp') |
| 120 | with open(test_file, 'wt'): |
| 121 | pass |
| 122 | |
| 123 | args = ['--clang', test_file] |
| 124 | out_lines = [ |
| 125 | 'Checking {} ...'.format(test_file).replace('\\', '/'), |
| 126 | ] |
| 127 | |
| 128 | assert_cppcheck(args, ec_exp=0, err_exp=[], out_exp=out_lines) |
| 129 | |
| 130 | |
| 131 | def test_warning(tmpdir): # #12424 |
nothing calls this directly
no test coverage detected