Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Action ¶
func Action(runner *testutils.Runner, fn func(input readcontract.Input) (readcontract.Output, error)) *testutils.Mock[readcontract.Input, readcontract.Output]
Action registers a new capability mock with the runner if another mock is registered for the same capability with for a step, it will take priority for that step.
func ActionForStep ¶
func ActionForStep(runner *testutils.Runner, step string, mockFn func(input readcontract.Input) (readcontract.Output, error)) *testutils.Mock[readcontract.Input, readcontract.Output]
ActionForStep registers a new capability mock with the runner, but only for a given step. if another mock was registered for the same capability without a step, this mock will take priority for that step.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.