mirror of
https://github.com/nalgeon/redka.git
synced 2025-10-15 20:40:39 +08:00
refactor: command - subpackages
This commit is contained in:
17
internal/command/string/string_test.go
Normal file
17
internal/command/string/string_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package string_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/nalgeon/redka"
|
||||
"github.com/nalgeon/redka/internal/redis"
|
||||
)
|
||||
|
||||
func getDB(tb testing.TB) (*redka.DB, redis.Redka) {
|
||||
tb.Helper()
|
||||
db, err := redka.Open(":memory:", nil)
|
||||
if err != nil {
|
||||
tb.Fatal(err)
|
||||
}
|
||||
return db, redis.RedkaDB(db)
|
||||
}
|
Reference in New Issue
Block a user