MCPcopy
hub / github.com/bitfield/script / TestWait_ReturnsErrorPresentOnPipe

Function TestWait_ReturnsErrorPresentOnPipe

script_test.go:1945–1951  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1943}
1944
1945func TestWait_ReturnsErrorPresentOnPipe(t *testing.T) {
1946 t.Parallel()
1947 p := script.Echo("a\nb\nc\n").ExecForEach("{{invalid template syntax}}")
1948 if p.Wait() == nil {
1949 t.Error("want error, got nil")
1950 }
1951}
1952
1953func TestWait_DoesNotReturnErrorForValidExecution(t *testing.T) {
1954 t.Parallel()

Callers

nothing calls this directly

Calls 4

EchoFunction · 0.92
ExecForEachMethod · 0.80
WaitMethod · 0.80
ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…