MCPcopy Create free account
hub / github.com/codehamr/codehamr / TestBashEchoesStdout

Function TestBashEchoesStdout

internal/tools/bash_test.go:14–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12)
13
14func TestBashEchoesStdout(t *testing.T) {
15 out := Bash(context.Background(), "echo hammer && echo time >&2", 5*time.Second)
16 if !strings.Contains(out, "hammer") || !strings.Contains(out, "time") {
17 t.Fatalf("combined output missing: %q", out)
18 }
19}
20
21func TestBashNonZeroExitNotFatal(t *testing.T) {
22 out := Bash(context.Background(), "false", 5*time.Second)

Callers

nothing calls this directly

Calls 1

BashFunction · 0.85

Tested by

no test coverage detected