Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
Data represents a test case, generic type T is the input type, generic type Y is the want type.
type Executor ¶
type Executor[T, Y any] struct { // contains filtered or unexported fields }
Executor manages and executes test cases, generic type T is the input type, generic type Y is the want type.
func NewExecutor ¶
NewExecutor creates an Executor, generic type T is the input type, generic type Y is the want type.
func (*Executor[T, Y]) Add ¶
Add adds test cases to the Executor, generic type T is the input type, generic type Y is the want type.
type Option ¶
Option represents an option for Executor, generic type T is the input type, generic type Y is the want type.
func WithComparison ¶
WithComparison is an option to set the comparison function, generic type T is the input type, generic type Y is the output type.