增加单元测试文件

This commit is contained in:
2021-11-23 16:33:01 +08:00
parent 64f7670559
commit ada41fa40a
17 changed files with 954 additions and 1 deletions

25
system/disk_test.go Normal file
View File

@ -0,0 +1,25 @@
// Package system...
//
// Description : system...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 2021-10-12 9:04 下午
package system
import (
"encoding/json"
"fmt"
"testing"
)
// TestGetDiskInfo ...
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 9:04 下午 2021/10/12
func TestGetDiskInfo(t *testing.T) {
r, _ := GetDiskInfo()
byteData, _ := json.Marshal(r)
fmt.Println(string(byteData))
}