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

Function test_slnx_no_projects

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

Source from the content-addressed store, hash-verified

148
149
150def test_slnx_no_projects(tmpdir):
151 content = '<?xml version="1.0" encoding="UTF-8"?>\r\n' \
152 "<Solution>\r\n" \
153 " <Configurations>\r\n" \
154 ' <Platform Name="x64" />\r\n' \
155 ' <Platform Name="x86" />\r\n' \
156 " </Configurations>\r\n" \
157 "</Solution>\r\n"
158
159 expected = "no projects found in Visual Studio solution file"
160
161 __test_project_error(tmpdir, "slnx", content, expected)
162
163
164def test_slnx_project_file_not_found(tmpdir):

Callers

nothing calls this directly

Calls 1

__test_project_errorFunction · 0.85

Tested by

no test coverage detected