Documentation
¶
Overview ¶
Package commandconformance checks a CommandService implementation through its gRPC client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dial ¶
func Dial(t *testing.T, srv executorv1.CommandServiceServer) executorv1.CommandServiceClient
Dial serves srv on an in-process listener for the test's lifetime and returns its client.
Types ¶
type Harness ¶
type Harness struct {
Client func(t *testing.T) executorv1.CommandServiceClient
// Succeed writes "out" to stdout and "err" to stderr, then exits 0.
Succeed string
// Fail exits with status 3.
Fail string
// Block writes "ready" to stdout, then runs until killed.
Block string
// BlockWithChild is Block with a background child that outlives its shell.
BlockWithChild string
// ChildGone returns nil once every BlockWithChild process has ended.
ChildGone func(ctx context.Context) error
// Survivor exits 0, leaving a process that survives the kill.
Survivor string
}
Harness supplies the client and the commands that produce each scenario.