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

Function __test_vs_project_local_path

test/cli/helloworld_test.py:153–163  ·  view source on GitHub ↗
(extra_args=None, exp_vs_cfg='Debug|Win32 Debug|x64 Release|Win32 Release|x64')

Source from the content-addressed store, hash-verified

151 assert stderr == '[main.c:5]: (error) Division by zero.\n'
152
153def __test_vs_project_local_path(extra_args=None, exp_vs_cfg='Debug|Win32 Debug|x64 Release|Win32 Release|x64'):
154 args = [
155 '--template=cppcheck1',
156 '--project=helloworld.vcxproj'
157 ]
158 if extra_args:
159 args += extra_args
160 ret, stdout, stderr = cppcheck(args, cwd=__proj_dir)
161 assert ret == 0, stdout
162 assert __getVsConfigs(stdout, 'main.c') == exp_vs_cfg
163 assert stderr == '[main.c:5]: (error) Division by zero.\n'
164
165def test_vs_project_local_path():
166 __test_vs_project_local_path()

Calls 2

cppcheckFunction · 0.90
__getVsConfigsFunction · 0.85

Tested by

no test coverage detected