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

Function test_rules_misra_severity

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

Source from the content-addressed store, hash-verified

74
75
76def test_rules_misra_severity(checker):
77 checker.loadRuleTexts("./addons/test/misra/misra_rules_dummy.txt")
78 assert(checker.ruleTexts[1004].misra_severity == 'Mandatory')
79 assert(checker.ruleTexts[401].misra_severity == 'Required')
80 assert(checker.ruleTexts[1505].misra_severity == 'Advisory')
81 assert(checker.ruleTexts[2104].misra_severity == '')
82
83
84def test_json_out(checker, capsys, test_files):

Callers

nothing calls this directly

Calls 1

loadRuleTextsMethod · 0.80

Tested by

no test coverage detected