Files
kubesphere/pkg/utils/idutils/id_utils_test.go
runzexia 5a6f51d775 devops tenant api
Signed-off-by: runzexia <runzexia@yunify.com>
2019-04-24 17:35:31 +08:00

25 lines
364 B
Go

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)
}