Documentation
¶
Overview ¶
Package fake is an in-memory runtime.Runtime for fast, deterministic unit tests (backlog AO-014: "Interface is mockable — a FakeRuntime powers fast unit tests"). It spawns no processes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runtime ¶
type Runtime struct {
// ExitCode is the exit code reported for non-canceled runs (default 0).
ExitCode int
// Block, when true, holds the run open (after the started event) until it
// is canceled or signaled — useful for exercising Signal/Cancel.
Block bool
// contains filtered or unexported fields
}
Runtime is a scriptable fake executor.
func (*Runtime) Dispatched ¶
Dispatched returns the specs dispatched so far.
Click to show internal directories.
Click to hide internal directories.