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

Function TestStatCache

internal/utils/fs/stat_test.go:20–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18}
19
20func TestStatCache(t *testing.T) {
21 for i := 0; i < 10; i++ {
22 stat, err := fsutils.StatDeviceCache("/usr/local")
23 if err != nil {
24 t.Fatal(err)
25 }
26 t.Log("free:", stat.FreeSize()/(1<<30), "total:", stat.TotalSize()/(1<<30), "used:", stat.UsedSize()/(1<<30))
27 }
28}
29
30func TestConcurrent(t *testing.T) {
31 var before = time.Now()

Callers

nothing calls this directly

Calls 4

LogMethod · 0.80
FreeSizeMethod · 0.80
UsedSizeMethod · 0.80
TotalSizeMethod · 0.45

Tested by

no test coverage detected