()
| 186 | assert stderr == '[%s:5]: (error) Division by zero.\n' % filename |
| 187 | |
| 188 | def 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 | |
| 199 | def __test_cppcheck_project_local_path(extra_args=None, exp_vs_cfg='Debug|x64'): |
| 200 | args = [ |
nothing calls this directly
no test coverage detected