Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericTestDefinition ¶
type GenericTestDefinition[InputType any, OutputType any] struct { Name string Input InputType FunctionToTest func(InputType) OutputType Expectations func(OutputType) }
GenericTestDefinition is a generic description of a simple "given this input then I expect this function to do X"
func (*GenericTestDefinition[I, O]) Run ¶
func (test *GenericTestDefinition[I, O]) Run(parentTest *testing.T)
The general Run method runs the `FunctionToTest` with the `Input` and `Expectations` of the test definition
Click to show internal directories.
Click to hide internal directories.