[PATCH v2] dts: refactor flow suite with generator pattern

Patrick Robb probb at iol.unh.edu
Thu Mar 5 17:43:49 CET 2026


On Fri, Feb 27, 2026 at 2:20 PM Dean Marx <dmarx at iol.unh.edu> wrote:
>
> + at dataclass
> +class FlowTest:
> +    """A complete flow test ready for execution."""
> +
> +    flow_rule: FlowRule
> +    packet: Packet
> +    verification_type: str
> +    verification_params: dict[str, Any]
> +    description: str = ""
> +
> +
> + at dataclass
> +class FlowTestResult:
> +    """Result of a single test case execution."""
> +
> +    description: str
> +    passed: bool
> +    failure_reason: str = ""
> +    flow_rule_pattern: str = ""
> +    skipped: bool = False
> +    sent_packet: Packet | None = None
> +
> +
> + at dataclass
> +class ModifyTestCase:

Don't just rename FlowTestCase to FlowTest - also drop Case from this
class, and JumpTestCase etc.


More information about the dev mailing list