(tmpdir)
| 61 | assert xml.find(expected) >= 0 |
| 62 | |
| 63 | def test_dummy_metrics_stdout(tmpdir): |
| 64 | source_path = __create_source_file(tmpdir) |
| 65 | addon_path = __create_addon(tmpdir) |
| 66 | args = [ |
| 67 | f'--addon={addon_path}', |
| 68 | '--xml-version=3', |
| 69 | source_path |
| 70 | ] |
| 71 | |
| 72 | ret, stdout, stderr = cppcheck(args) |
| 73 | assert ret == 0 |
| 74 | assert stdout == f'Checking {source_path} ...\n' |
| 75 | |
| 76 | for expected in __expected_xml: |
| 77 | assert stderr.find(expected) >= 0 |
| 78 |
nothing calls this directly
no test coverage detected