MCPcopy Index your code
hub / github.com/codehamr/codehamr / TestBashNonZeroExitNotFatal

Function TestBashNonZeroExitNotFatal

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

Source from the content-addressed store, hash-verified

19}
20
21func TestBashNonZeroExitNotFatal(t *testing.T) {
22 out := Bash(context.Background(), "false", 5*time.Second)
23 if !strings.Contains(out, "exit") {
24 t.Fatalf("expected exit marker, got %q", out)
25 }
26}
27
28// TestBashExactExitMarkerFormat pins the exact non-zero-exit shape: output,
29// then a single "\n(exit: ...)" marker. The model parses these, and the other

Callers

nothing calls this directly

Calls 1

BashFunction · 0.85

Tested by

no test coverage detected