organizing and refactoring
This commit is contained in:
parent
13b5474cd8
commit
6f159d4728
20 changed files with 832 additions and 488 deletions
14
agent/disk/disk_linux_test.go
Normal file
14
agent/disk/disk_linux_test.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package disk
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGetDisks(t *testing.T) {
|
||||
disks := GetDisks()
|
||||
if len(disks) == 0 {
|
||||
t.Fatalf("Could not get disks on linux system.")
|
||||
}
|
||||
|
||||
t.Logf("Got %d disks on linux system", len(disks))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue