(t *testing.T)
| 18 | } |
| 19 | |
| 20 | func 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 | |
| 30 | func TestConcurrent(t *testing.T) { |
| 31 | var before = time.Now() |