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

Function test_rules_cppcheck_severity

addons/test/misra_test.py:97–103  ·  view source on GitHub ↗
(checker, capsys, test_files)

Source from the content-addressed store, hash-verified

95
96
97def test_rules_cppcheck_severity(checker, capsys, test_files):
98 checker.loadRuleTexts("./addons/test/misra/misra_rules_dummy.txt")
99 checker.parseDump("./addons/test/misra/misra-test.c.dump")
100 captured = capsys.readouterr().err
101 assert("(error)" not in remove_misra_config(captured))
102 assert("(warning)" not in captured)
103 assert("(style)" in captured)
104
105def test_rules_cppcheck_severity_custom(checker, capsys, test_files):
106 checker.loadRuleTexts("./addons/test/misra/misra_rules_dummy.txt")

Callers

nothing calls this directly

Calls 3

remove_misra_configFunction · 0.85
loadRuleTextsMethod · 0.80
parseDumpMethod · 0.80

Tested by

no test coverage detected