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

Function test_5_good

addons/test/y2038_test.py:107–117  ·  view source on GitHub ↗
(capsys)

Source from the content-addressed store, hash-verified

105
106
107def test_5_good(capsys):
108 is_safe = check_y2038_safe('./addons/test/y2038/y2038-test-5-good-no-time-used.c.dump', quiet=True)
109 assert(is_safe is True)
110 captured = capsys.readouterr()
111 captured = captured.out.splitlines()
112 json_output = convert_json_output(captured)
113
114 # There are no warnings from C sources.
115 if 'unsafe-call' in json_output:
116 unsafe_calls = json_output['unsafe-call']
117 assert(len([c for c in unsafe_calls if c['file'].endswith('.c')]) == 0)
118
119
120def test_build_system_integration():

Callers

nothing calls this directly

Calls 2

check_y2038_safeFunction · 0.90
convert_json_outputFunction · 0.85

Tested by

no test coverage detected