Files
weave-scope/vendor/github.com/c9s/goprocinfo/linux/disk_test.go
2015-12-04 13:57:32 +00:00

15 lines
205 B
Go

package linux
import "testing"
func TestDisk(t *testing.T) {
disk, err := ReadDisk("/")
t.Logf("%+v", disk)
if err != nil {
t.Fatal("disk read fail")
}
if disk.Free <= 0 {
t.Log("no good")
}
}