suricata_check.tests.checker

GenericChecker.

Classes

GenericChecker

The GenericChecker class can be extended by tests to test classes implementing CheckerInterface.

Module Contents

class suricata_check.tests.checker.GenericChecker[source]

The GenericChecker class can be extended by tests to test classes implementing CheckerInterface.

check_issue(rule: idstools.rule.Rule | None, code: str, raised: bool) tuple[bool | None, suricata_check.utils.checker_typing.Issue | None][source]

Checks whether a rule raises an issue with a certain code and returns whether the expectation is met.

test_code_structure() None[source]

Asserts the checker only emits codes following the allowed structure.