Documentation
¶
Overview ¶
Package plugintest is the in-process fake of a plugin process, for tests on either side of the protocol. Its Launcher serves the kinds a test registers over a real go-plugin gRPC connection inside the test binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Launcher ¶
type Launcher struct {
// contains filtered or unexported fields
}
Launcher is a plugin.Launcher that serves registered kinds in-process. Everything it starts is stopped when the test ends.
func NewLauncher ¶
NewLauncher returns a Launcher with no plugin registered.
func (*Launcher) Add ¶
Add registers the kinds the plugin with id serves; a later Launch of a Spec with that ID serves them.
func (*Launcher) Crash ¶
Crash ends the last process launched for id as a crash would: its calls fail and it reports Exited.