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

Function TestFileList_Count

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

Source from the content-addressed store, hash-verified

351}
352
353func TestFileList_Count(t *testing.T) {
354 if !testutils.IsSingleTesting() {
355 return
356 }
357
358 var list = caches.NewSQLiteFileList(Tea.Root + "/data")
359
360 defer func() {
361 _ = list.Close()
362 }()
363
364 err := list.Init()
365 if err != nil {
366 t.Fatal(err)
367 }
368 var before = time.Now()
369 count, err := list.Count()
370 if err != nil {
371 t.Fatal(err)
372 }
373 t.Log("count:", count)
374 t.Log(time.Since(before).Seconds()*1000, "ms")
375}
376
377func TestFileList_CleanAll(t *testing.T) {
378 if !testutils.IsSingleTesting() {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected