MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / test_local_path_force

Function test_local_path_force

test/cli/proj2_test.py:50–56  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

48 assert stdout.find('Checking %s ...' % file2) >= 0
49
50def test_local_path_force(tmp_path):
51 proj_dir = tmp_path / 'proj2'
52 shutil.copytree(__proj_dir, proj_dir)
53 __create_compile_commands(proj_dir)
54 ret, stdout, _ = cppcheck(['--project=compile_commands.json', '--force'], cwd=proj_dir)
55 assert ret == 0, stdout
56 assert stdout.find('AAA') >= 0
57
58def test_local_path_maxconfigs(tmp_path):
59 proj_dir = tmp_path / 'proj2'

Callers

nothing calls this directly

Calls 3

cppcheckFunction · 0.90
findMethod · 0.45

Tested by

no test coverage detected