gitee.com/h79/goutils@v1.22.10/common/system/info_test.go (about)

     1  package system
     2  
     3  import "testing"
     4  
     5  func TestDisk(t *testing.T) {
     6  	t.Log(Disk())
     7  
     8  	t.Log(Cpu())
     9  
    10  	t.Log(Mem())
    11  
    12  	t.Log(Info())
    13  }
    14  
    15  func TestDiskAll(t *testing.T) {
    16  
    17  	t.Log(DiskAll())
    18  }