suricata_check.tests.checker ============================ .. py:module:: suricata_check.tests.checker .. autoapi-nested-parse:: `GenericChecker`. Classes ------- .. autoapisummary:: suricata_check.tests.checker.GenericChecker Module Contents --------------- .. py:class:: GenericChecker The GenericChecker class can be extended by tests to test classes implementing `CheckerInterface`. .. py:method:: check_issue(rule: Optional[idstools.rule.Rule], code: str, raised: bool) -> tuple[Optional[bool], Optional[suricata_check.utils.checker_typing.Issue]] Checks whether a rule raises an issue with a certain code and returns whether the expectation is met. .. py:method:: test_code_structure() -> None Asserts the checker only emits codes following the allowed structure.