mirror of
https://github.com/nalgeon/redka.git
synced 2025-10-05 16:06:50 +08:00
15 lines
239 B
Go
15 lines
239 B
Go
package conn
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/nalgeon/redka/internal/testx"
|
|
"github.com/nalgeon/redka/redsrv/internal/redis"
|
|
)
|
|
|
|
func getRedka(tb testing.TB) redis.Redka {
|
|
tb.Helper()
|
|
db := testx.OpenDB(tb)
|
|
return redis.RedkaDB(db)
|
|
}
|