uniugm/admin/lib/cdkey/cdkey_test.go

20 lines
259 B
Go
Raw Normal View History

2025-05-07 15:03:19 +08:00
package cdkey
import (
"fmt"
"testing"
)
func TestCDKey(t *testing.T) {
for i, key := range GenerateAll(2, 100000) {
if i > 10 {
continue
}
info, ok := DecodeCDKey(key)
if !ok {
panic(key)
}
fmt.Printf("%s, info:%+v\n", key, info)
}
}