11 lines
330 B
Go
11 lines
330 B
Go
package redisstate_test
|
|
|
|
import "encoding/base64"
|
|
|
|
// base64URL is the test helper that mirrors the encodeKeyComponent function
|
|
// inside Keyspace. Per-store tests use it to assert the exact Redis key
|
|
// shape the adapter writes.
|
|
func base64URL(value string) string {
|
|
return base64.RawURLEncoding.EncodeToString([]byte(value))
|
|
}
|