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

Function test_vs_project_absolute_path

test/cli/helloworld_test.py:188–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186 assert stderr == '[%s:5]: (error) Division by zero.\n' % filename
187
188def test_vs_project_absolute_path():
189 args = [
190 '--template=cppcheck1',
191 '--project=' + os.path.join(__proj_dir, 'helloworld.vcxproj')
192 ]
193 ret, stdout, stderr = cppcheck(args)
194 filename = os.path.join(__proj_dir, 'main.c')
195 assert ret == 0, stdout
196 assert __getVsConfigs(stdout, filename) == 'Debug|Win32 Debug|x64 Release|Win32 Release|x64'
197 assert stderr == '[%s:5]: (error) Division by zero.\n' % filename
198
199def __test_cppcheck_project_local_path(extra_args=None, exp_vs_cfg='Debug|x64'):
200 args = [

Callers

nothing calls this directly

Calls 3

cppcheckFunction · 0.90
__getVsConfigsFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected