Documentation
¶
Overview ¶
Package dispatchtest is the conformance suite of dispatch.Dispatcher. It plays the manager: it stores each request as open and dispatches it, and it plays the runner through the Receive function of the implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Harness ¶
type Harness struct {
Dispatcher dispatch.Dispatcher
// Receive blocks until a runner of repo gets a request and returns it. It returns false when ctx ends first.
Receive func(ctx context.Context, repo string) (runnerproto.Request, bool)
}
Harness is an implementation wired to a runner of each repository that New named.