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

Function test_platform

addons/test/misra_test.py:175–183  ·  view source on GitHub ↗
(checker)

Source from the content-addressed store, hash-verified

173 assert checker.read_ctu_info_line('{"summary":"123","data":123}') is not None
174
175def test_platform(checker):
176 test_file = os.path.join('addons','test','misra','misra-test.c')
177 dump_create(test_file, "--language=c++")
178 checker.parseDump(test_file + ".dump")
179 assert checker.is_cpp is True
180
181 dump_create(test_file, "--language=c")
182 checker.parseDump(test_file + ".dump")
183 assert checker.is_cpp is False
184
185def test_std99_identifiers():
186 for headerfile in C90_STDLIB_IDENTIFIERS:

Callers

nothing calls this directly

Calls 3

dump_createFunction · 0.85
parseDumpMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected