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

Function TestEchoReplacesInputWithSuppliedStringWhenUsedAsFilter

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

Source from the content-addressed store, hash-verified

306}
307
308func TestEchoReplacesInputWithSuppliedStringWhenUsedAsFilter(t *testing.T) {
309 t.Parallel()
310 want := "Hello, world."
311 p := script.Echo("bogus").Echo(want)
312 got, err := p.String()
313 if err != nil {
314 t.Fatal(err)
315 }
316 if got != want {
317 t.Errorf("want %q, got %q", want, got)
318 }
319}
320
321func TestExecForEach_ErrorsOnInvalidTemplateSyntax(t *testing.T) {
322 t.Parallel()

Callers

nothing calls this directly

Calls 3

EchoFunction · 0.92
EchoMethod · 0.80
StringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…