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

Function __create_gui_project

test/cli/lookup_test.py:16–33  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

14
15
16def __create_gui_project(tmpdir):
17 file_name = 'test.c'
18 test_file = os.path.join(tmpdir, file_name)
19 with open(test_file, 'wt'):
20 pass
21
22 project_file = os.path.join(tmpdir, 'project.cppcheck')
23 with open(project_file, 'wt') as f:
24 f.write(
25"""<?xml version="1.0" encoding="UTF-8"?>
26<project version="1">
27 <paths>
28 <dir name="{}"/>
29 </paths>
30</project>""".format(test_file)
31 )
32
33 return project_file, test_file
34
35
36def __create_compdb(tmpdir):

Calls 3

formatMethod · 0.80
joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected