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

Function __write_gui_project

test/cli/other_test.py:2070–2084  ·  view source on GitHub ↗
(tmpdir, test_file, ignore)

Source from the content-addressed store, hash-verified

2068
2069
2070def __write_gui_project(tmpdir, test_file, ignore):
2071 project_file = os.path.join(tmpdir, 'test.cppcheck')
2072 with open(project_file, 'wt') as f:
2073 f.write(
2074 """<?xml version="1.0" encoding="UTF-8"?>
2075<project>
2076<paths>
2077<dir name="{}"/>
2078</paths>
2079<ignore>
2080<path name="{}"/>
2081</ignore>
2082</project>""".format(test_file, ignore))
2083
2084 return project_file
2085
2086
2087def __test_ignore_project(tmpdir, ign_proj, ign_cli=None, append_cli=False, inject_path_proj=False):

Callers 1

__test_ignore_projectFunction · 0.85

Calls 3

formatMethod · 0.80
joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected