13 lines
171 B
Go
13 lines
171 B
Go
|
package util
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestFileHash(t *testing.T) {
|
||
|
hash := FileHash("file_util")
|
||
|
if hash != "" {
|
||
|
t.Log(hash)
|
||
|
} else {
|
||
|
t.Log("计算hash失败")
|
||
|
}
|
||
|
}
|