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

Function test_vs_project_relative_path

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

Source from the content-addressed store, hash-verified

175 __test_vs_project_local_path(['--no-analyze-all-vs-configs'], 'Debug|Win32')
176
177def test_vs_project_relative_path():
178 args = [
179 '--template=cppcheck1',
180 '--project=' + os.path.join(__proj_dir, 'helloworld.vcxproj')
181 ]
182 ret, stdout, stderr = cppcheck(args, cwd=__script_dir)
183 filename = os.path.join(__proj_dir, 'main.c')
184 assert ret == 0, stdout
185 assert __getVsConfigs(stdout, filename) == 'Debug|Win32 Debug|x64 Release|Win32 Release|x64'
186 assert stderr == '[%s:5]: (error) Division by zero.\n' % filename
187
188def test_vs_project_absolute_path():
189 args = [

Callers

nothing calls this directly

Calls 3

cppcheckFunction · 0.90
__getVsConfigsFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected