devops tenant api

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2019-04-23 20:47:47 +08:00
committed by zryfish
parent 78f2dab18c
commit 5a6f51d775
143 changed files with 19533 additions and 341 deletions

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