离线 uuid 生成单元测试

This commit is contained in:
xmdhs 2023-09-16 01:51:56 +08:00
parent 9f6c4b8ee7
commit 25017feac2
No known key found for this signature in database
GPG Key ID: E809D6D43DEFCC95

11
utils/uuid_test.go Normal file
View File

@ -0,0 +1,11 @@
package utils
import (
"testing"
)
func TestUUIDGen(t *testing.T) {
if UUIDGen("xmdhs") != "6560e064bcfc32baa5fa2aa8831f1298" {
t.Fail()
}
}