Files
exchange_go/pkg/utility/idhelper_test.go
2025-02-06 11:14:33 +08:00

27 lines
416 B
Go

package utility
import (
"fmt"
"testing"
"time"
)
func Test_GenerateRandString(t *testing.T) {
for i := 0; i < 10; i++ {
t.Log(GenerateRandString(6))
time.Sleep(time.Microsecond)
}
}
func TestName(t *testing.T) {
for i := 0; i < 10; i++ {
t.Log(GetRandIntStr(6, ""))
time.Sleep(time.Microsecond)
}
// t.Log(math.Pow(10, 5))
}
func TestGetXid(t *testing.T) {
data := GetXid()
fmt.Println(data)
}