24
pkg/utils/idutils/id_utils_test.go
Normal file
24
pkg/utils/idutils/id_utils_test.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package idutils
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"sort"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestGetUuid(t *testing.T) {
|
||||
fmt.Println(GetUuid(""))
|
||||
}
|
||||
|
||||
func TestGetUuid36(t *testing.T) {
|
||||
fmt.Println(GetUuid36(""))
|
||||
}
|
||||
|
||||
func TestGetManyUuid(t *testing.T) {
|
||||
var strSlice []string
|
||||
for i := 0; i < 10000; i++ {
|
||||
testId := GetUuid("")
|
||||
strSlice = append(strSlice, testId)
|
||||
}
|
||||
sort.Strings(strSlice)
|
||||
}
|
||||
Reference in New Issue
Block a user