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

Function test_local_path_maxconfigs

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

Source from the content-addressed store, hash-verified

56 assert stdout.find('AAA') >= 0
57
58def 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
66def test_relative_path(tmp_path):
67 proj_dir = tmp_path / 'proj2'

Callers

nothing calls this directly

Calls 3

cppcheckFunction · 0.90
findMethod · 0.45

Tested by

no test coverage detected