service/library/idgenerator/genid_test.go

16 lines
216 B
Go
Raw Permalink Normal View History

2023-12-21 22:17:40 +08:00
package idgenerator
import (
"fmt"
"testing"
"time"
)
func TestGenIdInt64(t *testing.T) {
for i := 0; i < 1024; i++ {
id, err := GenIdInt64(int64(0))
fmt.Println(id, err)
time.Sleep(time.Nanosecond)
}
}