(t *testing.T)
| 458 | } |
| 459 | |
| 460 | func TestMulti(t *testing.T) { |
| 461 | file, err := ioutil.TempFile("", "buffer") |
| 462 | if err != nil { |
| 463 | t.Error(err.Error()) |
| 464 | } |
| 465 | defer os.Remove(file.Name()) |
| 466 | defer file.Close() |
| 467 | |
| 468 | buf := NewMulti(New(5), New(5), NewFile(500, file), NewPartition(NewFilePool(1024, ""))) |
| 469 | checkCap(t, buf, math.MaxInt64) |
| 470 | runPerfectSeries(t, buf) |
| 471 | isPerfectMatch(t, buf, 1024*1024) |
| 472 | buf.Reset() |
| 473 | } |
| 474 | |
| 475 | func TestMulti2(t *testing.T) { |
| 476 | file, err := ioutil.TempFile("", "buffer") |
nothing calls this directly
no test coverage detected
searching dependent graphs…