package captcha import ( "fmt" "github.com/go-redis/redis" "testing" ) func TestGenerateKey(t *testing.T) { client := redis.NewClient(&redis.Options{}) store := NewRedisStore("user", client) id, _, err := Generate(store) fmt.Println(id, err) fmt.Println(store.Verify(id, "aa", false)) }