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

Function TestFilePool

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

Source from the content-addressed store, hash-verified

65}
66
67func 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
76func TestFilePool2(t *testing.T) {
77 pool := NewFilePool(1024, "::~_bad_dir_~::")

Callers

nothing calls this directly

Calls 3

NewFilePoolFunction · 0.85
NewPartitionFunction · 0.85
WriteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…