MCPcopy Create free account
hub / github.com/djherbis/buffer / TestMulti2

Function TestMulti2

buffer_test.go:475–488  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

473}
474
475func 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
490func runPerfectSeries(t *testing.T, buf Buffer) {
491 checkEmpty(t, buf)

Callers

nothing calls this directly

Calls 9

NewMultiFunction · 0.85
NewFunction · 0.85
NewFileFunction · 0.85
checkCapFunction · 0.85
runPerfectSeriesFunction · 0.85
isPerfectMatchFunction · 0.85
NameMethod · 0.65
CloseMethod · 0.65
ResetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…