wip
This commit is contained in:
19
idgen/idgen_test.go
Normal file
19
idgen/idgen_test.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user