|
|
@ -22,7 +22,7 @@ func TestDisk_usage(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
|
|
func TestDisk_partitions(t *testing.T) {
|
|
|
|
func TestDisk_partitions(t *testing.T) {
|
|
|
|
ret, err := DiskPartitions(false)
|
|
|
|
ret, err := DiskPartitions(false)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil || len(ret) == 0 {
|
|
|
|
t.Errorf("error %v", err)
|
|
|
|
t.Errorf("error %v", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
empty := DiskPartitionStat{}
|
|
|
|
empty := DiskPartitionStat{}
|
|
|
@ -35,7 +35,7 @@ func TestDisk_partitions(t *testing.T) {
|
|
|
|
|
|
|
|
|
|
|
|
func TestDisk_io_counters(t *testing.T) {
|
|
|
|
func TestDisk_io_counters(t *testing.T) {
|
|
|
|
ret, err := DiskIOCounters()
|
|
|
|
ret, err := DiskIOCounters()
|
|
|
|
if err != nil {
|
|
|
|
if err != nil || len(ret) == 0 {
|
|
|
|
t.Errorf("error %v", err)
|
|
|
|
t.Errorf("error %v", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
empty := DiskIOCountersStat{}
|
|
|
|
empty := DiskIOCountersStat{}
|
|
|
|