(t *testing.T)
| 60 | } |
| 61 | |
| 62 | func 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 | } |
nothing calls this directly
no test coverage detected