readcontracttest

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Action

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL