This commit is contained in:
jdl
2024-11-11 06:36:55 +01:00
parent d0587cc585
commit c5419d662e
102 changed files with 4181 additions and 0 deletions

19
idgen/idgen_test.go Normal file
View File

@@ -0,0 +1,19 @@
package idgen
import (
"log"
"testing"
)
func BenchmarkNext(b *testing.B) {
for i := 0; i < b.N; i++ {
NextID(0)
}
}
func TestNextID(t *testing.T) {
id := NextID(32)
a, b, c := SplitID(id)
log.Print(a, b, c)
}