(tmp_path)
| 56 | assert stdout.find('AAA') >= 0 |
| 57 | |
| 58 | def test_local_path_maxconfigs(tmp_path): |
| 59 | proj_dir = tmp_path / 'proj2' |
| 60 | shutil.copytree(__proj_dir, proj_dir) |
| 61 | __create_compile_commands(proj_dir) |
| 62 | ret, stdout, _ = cppcheck(['--project=compile_commands.json', '--max-configs=2'], cwd=proj_dir) |
| 63 | assert ret == 0, stdout |
| 64 | assert stdout.find('AAA') >= 0 |
| 65 | |
| 66 | def test_relative_path(tmp_path): |
| 67 | proj_dir = tmp_path / 'proj2' |
nothing calls this directly
no test coverage detected