Documentation
¶
Overview ¶
Package grpctest builds gRPC plugin binaries and the plugin launcher for tests that start real plugin processes.
Index ¶
Constants ¶
const LauncherEnv = "GOATFLOW_PLUGIN_LAUNCHER"
LauncherEnv names the launcher the gRPC runtime starts plugins through.
Variables ¶
This section is empty.
Functions ¶
func BuildPlugin ¶
BuildPlugin builds the plugin main package pkg (relative to the repo root) into a temp dir, makes the launcher available (UseLauncher) and returns the plugin binary's path.
func Run ¶
Run runs the tests, then removes the launcher UseLauncher built. Call it from TestMain: os.Exit(grpctest.Run(m)).
func UseLauncher ¶
UseLauncher builds cmd/goatflow-plugin-exec once per test binary and points LauncherEnv at it for the rest of t.
Types ¶
This section is empty.