MCPcopy
hub / github.com/uber-go/zap / TestBuffer

Function TestBuffer

zaptest/writer_test.go:62–68  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

60}
61
62func TestBuffer(t *testing.T) {
63 buf := &Buffer{}
64 buf.WriteString("foo\n")
65 buf.WriteString("bar\n")
66 assert.Equal(t, []string{"foo", "bar"}, buf.Lines(), "Unexpected output from Lines.")
67 assert.Equal(t, "foo\nbar", buf.Stripped(), "Unexpected output from Stripped.")
68}

Callers

nothing calls this directly

Calls 3

WriteStringMethod · 0.95
LinesMethod · 0.95
StrippedMethod · 0.95

Tested by

no test coverage detected