MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / testOpenKVFileList

Function testOpenKVFileList

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

Source from the content-addressed store, hash-verified

19var testingKVList *caches.KVFileList
20
21func testOpenKVFileList(t *testing.T) *caches.KVFileList {
22 var list = caches.NewKVFileList(Tea.Root + "/data/stores/cache-stores")
23 err := list.Init()
24 if err != nil {
25 t.Fatal(err)
26 }
27
28 testingKVList = list
29 return list
30}
31
32func TestNewKVFileList(t *testing.T) {
33 var list = testOpenKVFileList(t)

Callers 15

TestNewKVFileListFunction · 0.85
TestKVFileList_AddFunction · 0.85
TestKVFileList_Add_ManyFunction · 0.85
TestKVFileList_ExistFunction · 0.85
TestKVFileList_ExistManyFunction · 0.85
TestKVFileList_RemoveFunction · 0.85
TestKVFileList_CleanAllFunction · 0.85
TestKVFileList_InspectFunction · 0.85
TestKVFileList_PurgeFunction · 0.85

Calls 2

NewKVFileListFunction · 0.92
InitMethod · 0.65

Tested by

no test coverage detected