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

Function TestStat

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

Source from the content-addressed store, hash-verified

10)
11
12func TestStat(t *testing.T) {
13 stat, err := fsutils.StatDevice("/usr/local")
14 if err != nil {
15 t.Fatal(err)
16 }
17 t.Log("free:", stat.FreeSize()/(1<<30), "total:", stat.TotalSize()/(1<<30), "used:", stat.UsedSize()/(1<<30))
18}
19
20func TestStatCache(t *testing.T) {
21 for i := 0; i < 10; i++ {

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