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

Function TestFileList_Init

internal/caches/list_file_sqlite_test.go:19–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

17)
18
19func TestFileList_Init(t *testing.T) {
20 if !testutils.IsSingleTesting() {
21 return
22 }
23
24 var list = caches.NewSQLiteFileList(Tea.Root + "/data/cache-index/p1")
25
26 defer func() {
27 _ = list.Close()
28 }()
29
30 err := list.Init()
31 if err != nil {
32 t.Fatal(err)
33 }
34 defer func() {
35 _ = list.Close()
36 }()
37 t.Log("ok")
38}
39
40func TestFileList_Add(t *testing.T) {
41 if !testutils.IsSingleTesting() {

Callers

nothing calls this directly

Calls 5

IsSingleTestingFunction · 0.92
NewSQLiteFileListFunction · 0.92
LogMethod · 0.80
CloseMethod · 0.65
InitMethod · 0.65

Tested by

no test coverage detected