离线 uuid 生成单元测试
This commit is contained in:
parent
9f6c4b8ee7
commit
25017feac2
11
utils/uuid_test.go
Normal file
11
utils/uuid_test.go
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
package utils
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestUUIDGen(t *testing.T) {
|
||||||
|
if UUIDGen("xmdhs") != "6560e064bcfc32baa5fa2aa8831f1298" {
|
||||||
|
t.Fail()
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user