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

Function TestMulti

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

Source from the content-addressed store, hash-verified

458}
459
460func 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
475func TestMulti2(t *testing.T) {
476 file, err := ioutil.TempFile("", "buffer")

Callers

nothing calls this directly

Calls 11

NewMultiFunction · 0.85
NewFunction · 0.85
NewFileFunction · 0.85
NewPartitionFunction · 0.85
NewFilePoolFunction · 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…