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

Function test_json_invalid_arguments

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

Source from the content-addressed store, hash-verified

81
82
83def test_json_invalid_arguments(tmpdir):
84 compilation_db = [
85 {"directory": str(tmpdir),
86 "arguments": "",
87 "file": "bug1.cpp",
88 "output": "bug1.o"}
89 ]
90
91 expected = "'arguments' field in compilation database entry is not a JSON array"
92
93 __test_project_error(tmpdir, "json", json.dumps(compilation_db), expected)
94
95
96def test_sln_invalid_file(tmpdir):

Callers

nothing calls this directly

Calls 2

strFunction · 0.85
__test_project_errorFunction · 0.85

Tested by

no test coverage detected