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

Function TestJoinJoinsInputLinesIntoSpaceSeparatedString

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

Source from the content-addressed store, hash-verified

721}
722
723func TestJoinJoinsInputLinesIntoSpaceSeparatedString(t *testing.T) {
724 t.Parallel()
725 input := "hello\nfrom\nthe\njoin\ntest"
726 want := "hello from the join test\n"
727 got, err := script.Echo(input).Join().String()
728 if err != nil {
729 t.Fatal(err)
730 }
731 if got != want {
732 t.Errorf("want %q, got %q", want, got)
733 }
734}
735
736func TestJQWithDotQueryPrettyPrintsInput(t *testing.T) {
737 t.Parallel()

Callers

nothing calls this directly

Calls 3

EchoFunction · 0.92
StringMethod · 0.80
JoinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…