MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / TestOpenFilePool_Close

Function TestOpenFilePool_Close

internal/caches/open_file_pool_test.go:21–26  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

19}
20
21func TestOpenFilePool_Close(t *testing.T) {
22 var pool = caches.NewOpenFilePool("a")
23 pool.Put(caches.NewOpenFile(nil, nil, nil, 0, 1))
24 pool.Put(caches.NewOpenFile(nil, nil, nil, 0, 1))
25 pool.Close()
26}
27
28func TestOpenFilePool_Concurrent(t *testing.T) {
29 var pool = caches.NewOpenFilePool("a")

Callers

nothing calls this directly

Calls 4

NewOpenFilePoolFunction · 0.92
NewOpenFileFunction · 0.92
CloseMethod · 0.65
PutMethod · 0.45

Tested by

no test coverage detected