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

Function TestEchoProducesSuppliedString

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

Source from the content-addressed store, hash-verified

293}
294
295func TestEchoProducesSuppliedString(t *testing.T) {
296 t.Parallel()
297 want := "Hello, world."
298 p := script.Echo(want)
299 got, err := p.String()
300 if err != nil {
301 t.Fatal(err)
302 }
303 if got != want {
304 t.Errorf("want %q, got %q", want, got)
305 }
306}
307
308func TestEchoReplacesInputWithSuppliedStringWhenUsedAsFilter(t *testing.T) {
309 t.Parallel()

Callers

nothing calls this directly

Calls 2

EchoFunction · 0.92
StringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…