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

Function test_verifyRuleTexts

addons/test/misra_test.py:68–73  ·  view source on GitHub ↗
(checker, capsys)

Source from the content-addressed store, hash-verified

66
67
68def test_verifyRuleTexts(checker, capsys):
69 checker.loadRuleTexts("./addons/test/misra/misra_rules_dummy.txt")
70 checker.verifyRuleTexts()
71 captured = capsys.readouterr().out
72 assert("21.3" not in captured)
73 assert("1.3" in captured)
74
75
76def test_rules_misra_severity(checker):

Callers

nothing calls this directly

Calls 2

loadRuleTextsMethod · 0.80
verifyRuleTextsMethod · 0.80

Tested by

no test coverage detected