(t *testing.T)
| 473 | } |
| 474 | |
| 475 | func TestMulti2(t *testing.T) { |
| 476 | file, err := ioutil.TempFile("", "buffer") |
| 477 | if err != nil { |
| 478 | t.Error(err.Error()) |
| 479 | } |
| 480 | defer os.Remove(file.Name()) |
| 481 | defer file.Close() |
| 482 | |
| 483 | buf := NewMulti(New(5), New(5), NewFile(500, file)) |
| 484 | checkCap(t, buf, 510) |
| 485 | runPerfectSeries(t, buf) |
| 486 | isPerfectMatch(t, buf, 1024*1024) |
| 487 | buf.Reset() |
| 488 | } |
| 489 | |
| 490 | func runPerfectSeries(t *testing.T, buf Buffer) { |
| 491 | checkEmpty(t, buf) |
nothing calls this directly
no test coverage detected
searching dependent graphs…