File tree 4 files changed +11
-3
lines changed
4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
12
12
var _ = Describe ("Commands" , func () {
13
13
var (
14
14
clientMock baseMock
15
- client redis. Cmdable
15
+ client mockCmdable
16
16
clientType redisClientType
17
17
)
18
18
Original file line number Diff line number Diff line change 5
5
require (
6
6
github.com/onsi/ginkgo v1.16.5
7
7
github.com/onsi/gomega v1.25.0
8
- github.com/redis/go-redis/v9 v9.0.3
8
+ github.com/redis/go-redis/v9 v9.2.0
9
9
)
10
10
11
11
require (
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ github.com/onsi/gomega v1.25.0/go.mod h1:r+zV744Re+DiYCIPRlYOTxn0YkOLcAnW8k1xXdM
40
40
github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
41
41
github.com/redis/go-redis/v9 v9.0.3 h1:+7mmR26M0IvyLxGZUHxu4GiBkJkVDid0Un+j4ScYu4k =
42
42
github.com/redis/go-redis/v9 v9.0.3 /go.mod h1:WqMKv5vnQbRuZstUwxQI195wHy+t4PuXDOjzMvcuQHk =
43
+ github.com/redis/go-redis/v9 v9.2.0 h1:zwMdX0A4eVzse46YN18QhuDiM4uf3JmkOB4VZrdt5uI =
44
+ github.com/redis/go-redis/v9 v9.2.0 /go.mod h1:hdY0cQFCN4fnSYT6TkisLufl/4W5UIXyv0b/CLO2V2M =
43
45
github.com/stretchr/objx v0.1.0 /go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME =
44
46
github.com/stretchr/testify v1.5.1 /go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA =
45
47
github.com/yuin/goldmark v1.2.1 /go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74 =
Original file line number Diff line number Diff line change @@ -12,12 +12,18 @@ import (
12
12
"github.com/redis/go-redis/v9"
13
13
)
14
14
15
+ type mockCmdable interface {
16
+ redis.Cmdable
17
+ redis.BitMapCmdable
18
+ redis.StreamCmdable
19
+ }
20
+
15
21
type mock struct {
16
22
ctx context.Context
17
23
18
24
parent * mock
19
25
20
- factory redis. Cmdable
26
+ factory mockCmdable
21
27
client redis.Cmdable
22
28
expected []expectation
23
29
You can’t perform that action at this time.
0 commit comments