(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func 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 | |
| 20 | func TestStatCache(t *testing.T) { |
| 21 | for i := 0; i < 10; i++ { |