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

Function test_dummy_metrics_stdout

test/cli/metrics_test.py:63–77  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

61 assert xml.find(expected) >= 0
62
63def 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

Callers

nothing calls this directly

Calls 4

cppcheckFunction · 0.90
__create_source_fileFunction · 0.85
__create_addonFunction · 0.85
findMethod · 0.45

Tested by

no test coverage detected