(tmp_path)
| 37 | assert stdout.find('Checking %s ...' % file2) >= 0 |
| 38 | |
| 39 | def test_local_path(tmp_path): |
| 40 | proj_dir = tmp_path / 'proj2' |
| 41 | shutil.copytree(__proj_dir, proj_dir) |
| 42 | __create_compile_commands(proj_dir) |
| 43 | ret, stdout, _ = cppcheck(['--project=compile_commands.json'], cwd=proj_dir) |
| 44 | file1 = os.path.join('a', 'a.c') |
| 45 | file2 = os.path.join('b', 'b.c') |
| 46 | assert ret == 0, stdout |
| 47 | assert stdout.find('Checking %s ...' % file1) >= 0 |
| 48 | assert stdout.find('Checking %s ...' % file2) >= 0 |
| 49 | |
| 50 | def test_local_path_force(tmp_path): |
| 51 | proj_dir = tmp_path / 'proj2' |
nothing calls this directly
no test coverage detected