(t *testing.T)
| 17 | } |
| 18 | |
| 19 | func TestTruncBuffer_ExactMax(t *testing.T) { |
| 20 | tb := NewTruncBuffer(5) |
| 21 | tb.Write([]byte("abcde")) |
| 22 | if got := string(tb.Bytes()); got != "abcde" { |
| 23 | t.Fatalf("got %q, want %q", got, "abcde") |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func TestTruncBuffer_OverflowSingleWrite(t *testing.T) { |
| 28 | tb := NewTruncBuffer(5) |
nothing calls this directly
no test coverage detected
searching dependent graphs…