(tmpdir)
| 14 | |
| 15 | |
| 16 | def __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 | |
| 36 | def __create_compdb(tmpdir): |
no test coverage detected