github.com/qxnw/lib4go@v0.0.0-20180426074627-c80c7e84b925/sysinfo/memory/memory_test.go (about)

     1  package memory
     2  
     3  import "testing"
     4  
     5  func Test(t *testing.T) {
     6  	avaliable := GetInfo()
     7  	if avaliable.Total == "" || avaliable.Idle == "" || avaliable.Used == "" {
     8  		t.Error("test fail")
     9  	}
    10  }