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

Function test_help

test/cli/premium_test.py:160–167  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

158
159
160def test_help(tmpdir):
161 exe = __copy_cppcheck_premium(tmpdir)
162
163 exitcode, stdout, _ = cppcheck(['--help'], cppcheck_exe=exe)
164 assert exitcode == 0
165 assert stdout.startswith('Cppcheck ') # check for product name - TODO: should be "Cppcheck Premium"
166 assert '--premium=' in stdout, stdout # check for premium option
167 assert 'cppchecksolutions.com' in stdout, stdout # check for premium help link
168
169
170def test_cwe(tmpdir):

Callers

nothing calls this directly

Calls 2

cppcheckFunction · 0.90
__copy_cppcheck_premiumFunction · 0.85

Tested by

no test coverage detected