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

Function TestFileStorage_RemoveCacheFile

internal/caches/storage_file_test.go:629–639  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

627}
628
629func TestFileStorage_RemoveCacheFile(t *testing.T) {
630 if !testutils.IsSingleTesting() {
631 return
632 }
633
634 var storage = NewFileStorage(nil)
635
636 defer storage.Stop()
637
638 t.Log(storage.removeCacheFile("/Users/WorkSpace/EdgeProject/EdgeCache/p43/15/7e/157eba0dfc6dfb6fbbf20b1f9e584674.cache"))
639}
640
641func TestFileStorage_ScanGarbageCaches(t *testing.T) {
642 if !testutils.IsSingleTesting() {

Callers

nothing calls this directly

Calls 5

IsSingleTestingFunction · 0.92
NewFileStorageFunction · 0.85
LogMethod · 0.80
removeCacheFileMethod · 0.80
StopMethod · 0.65

Tested by

no test coverage detected