(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func TestFilePool(t *testing.T) { |
| 68 | pool := NewFilePool(1024, "::~_bad_dir_~::") |
| 69 | buf := NewPartition(pool) |
| 70 | _, err := buf.Write([]byte("hello")) |
| 71 | if err == nil { |
| 72 | t.Error("an error was expected here") |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | func TestFilePool2(t *testing.T) { |
| 77 | pool := NewFilePool(1024, "::~_bad_dir_~::") |
nothing calls this directly
no test coverage detected
searching dependent graphs…