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

Function TestExecForEach_ErrorsOnInvalidTemplateSyntax

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

Source from the content-addressed store, hash-verified

319}
320
321func TestExecForEach_ErrorsOnInvalidTemplateSyntax(t *testing.T) {
322 t.Parallel()
323 p := script.Echo("a\nb\nc\n").ExecForEach("{{invalid template syntax}}")
324 p.Wait()
325 if p.Error() == nil {
326 t.Error("want error with invalid template syntax")
327 }
328}
329
330func TestExecForEach_ErrorsOnUnbalancedQuotes(t *testing.T) {
331 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…