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

Function __test_suppress_inline

test/cli/whole-program_test.py:74–91  ·  view source on GitHub ↗
(extra_args)

Source from the content-addressed store, hash-verified

72
73# TODO: remove overrides when this is fully working
74def __test_suppress_inline(extra_args):
75 args = [
76 '-q',
77 '--template=simple',
78 '--enable=information,style',
79 '--inline-suppr',
80 '--error-exitcode=1',
81 'whole-program/odr1.cpp',
82 'whole-program/odr2.cpp'
83 ]
84
85 args += extra_args
86
87 ret, stdout, stderr = cppcheck(args, cwd=__script_dir)
88 lines = stderr.splitlines()
89 assert lines == []
90 assert stdout == ''
91 assert ret == 0, stdout
92
93
94def test_suppress_inline():

Calls 1

cppcheckFunction · 0.90

Tested by

no test coverage detected