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

Function test_json_no_arguments

test/cli/project_test.py:71–80  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

69
70
71def test_json_no_arguments(tmpdir):
72 compilation_db = [
73 {"directory": str(tmpdir),
74 "file": "bug1.cpp",
75 "output": "bug1.o"}
76 ]
77
78 expected = "no 'arguments' or 'command' field found in compilation database entry"
79
80 __test_project_error(tmpdir, "json", json.dumps(compilation_db), expected)
81
82
83def test_json_invalid_arguments(tmpdir):

Callers

nothing calls this directly

Calls 2

strFunction · 0.85
__test_project_errorFunction · 0.85

Tested by

no test coverage detected