(t *testing.T)
| 74 | } |
| 75 | |
| 76 | func TestFilePool2(t *testing.T) { |
| 77 | pool := NewFilePool(1024, "::~_bad_dir_~::") |
| 78 | buf := NewPartition(pool, New(0)) |
| 79 | _, err := buf.Write([]byte("hello")) |
| 80 | if err == nil { |
| 81 | t.Error("an error was expected here") |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | func TestOverflow(t *testing.T) { |
| 86 | buf := NewMulti(New(5), Discard) |
nothing calls this directly
no test coverage detected
searching dependent graphs…