{"modulePath":"github.com/stacklok/mecatl","version":"v0.0.52","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package commandconformance\n\nPackage commandconformance checks a CommandService implementation through its gRPC client.\n\n## Functions\n\n```go\nfunc Dial(t *testing.T, srv executorv1.CommandServiceServer) executorv1.CommandServiceClient\n```\nDial serves srv on an in-process listener for the test's lifetime and returns its client.\n\n```go\nfunc Run(t *testing.T, h Harness)\n```\nRun runs the suite.\n\n## Types\n\n```go\ntype Harness struct {\n\tClient func(t *testing.T) executorv1.CommandServiceClient\n\t// Succeed writes \"out\" to stdout and \"err\" to stderr, then exits 0.\n\tSucceed string\n\t// Fail exits with status 3.\n\tFail string\n\t// Block writes \"ready\" to stdout, then runs until killed.\n\tBlock string\n\t// BlockWithChild is Block with a background child that outlives its shell.\n\tBlockWithChild string\n\t// ChildGone returns nil once every BlockWithChild process has ended.\n\tChildGone func(ctx context.Context) error\n\t// Survivor exits 0, leaving a process that survives the kill.\n\tSurvivor string\n}\n```\nHarness supplies the client and the commands that produce each scenario.\n\n","path":"github.com/stacklok/mecatl/internal/executorrpc/commandconformance","name":"commandconformance","synopsis":"Package commandconformance checks a CommandService implementation through its gRPC client.","isRedistributable":true}
