Documentation
¶
Overview ¶
Package testrig is the in-process harness, Start running app.Run on a temp directory and a loopback listener, and holds the module-wide checks: the retired modules, the retained set the dead-code roots name, and import confinement.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
// Mutate edits app.Config before Run; later landings set their fakes here.
Mutate func(*app.Config)
// Config is written to the temp config path before boot; nil leaves it
// absent.
Config []byte
}
Options configures one rig.
type Rig ¶
type Rig struct {
// Settings is the app's settings service, for saves before an HTTP
// route exists.
Settings *settings.Service
Client *http.Client
URL string
Paths app.Paths
// contains filtered or unexported fields
}
Rig is one running app.
Click to show internal directories.
Click to hide internal directories.