dtp/idgenerator/genid_test.go

16 lines
216 B
Go
Raw Normal View History

2023-12-24 22:22:45 +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)
}
}