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

Function TestJoinHandlesLongLines

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

Source from the content-addressed store, hash-verified

709}
710
711func TestJoinHandlesLongLines(t *testing.T) {
712 t.Parallel()
713 result, err := script.Echo(longLine).Join().String()
714 if err != nil {
715 t.Fatal(err)
716 }
717 want := len(longLine)
718 if want != len(result) {
719 t.Errorf("want result length %d, got %d", want, len(result))
720 }
721}
722
723func TestJoinJoinsInputLinesIntoSpaceSeparatedString(t *testing.T) {
724 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…