[PATCH v2] dts: refactor flow suite with generator pattern
Dean Marx
dmarx at iol.unh.edu
Thu Mar 5 18:16:55 CET 2026
On Thu, Mar 5, 2026 at 11:46 AM Patrick Robb <probb at iol.unh.edu> wrote:
>
> 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.
Makes sense, I'll add to the next version
More information about the dev
mailing list