MCPcopy Index your code
hub / github.com/bitfield/script / TestExecForEach_ErrorsOnUnbalancedQuotes

Function TestExecForEach_ErrorsOnUnbalancedQuotes

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

Source from the content-addressed store, hash-verified

328}
329
330func TestExecForEach_ErrorsOnUnbalancedQuotes(t *testing.T) {
331 t.Parallel()
332 p := script.Echo("a\nb\nc\n").ExecForEach("echo \"{{.}}")
333 p.Wait()
334 if p.Error() == nil {
335 t.Error("want error with unbalanced quotes in command line")
336 }
337}
338
339func TestExecForEach_SendsStderrOutputToPipeStderr(t *testing.T) {
340 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…