@@ -204,6 +204,7 @@ type baseMock interface {
204204
205205 ExpectBZPopMax (timeout time.Duration , keys ... string ) * ExpectedZWithKey
206206 ExpectBZPopMin (timeout time.Duration , keys ... string ) * ExpectedZWithKey
207+ ExpectBZMPop (timeout time.Duration , order string , count int64 , keys ... string ) * ExpectedZSliceWithKey
207208
208209 ExpectZAdd (key string , members ... redis.Z ) * ExpectedInt
209210 ExpectZAddNX (key string , members ... redis.Z ) * ExpectedInt
@@ -218,6 +219,7 @@ type baseMock interface {
218219 ExpectZInterWithScores (store * redis.ZStore ) * ExpectedZSlice
219220 ExpectZInterCard (limit int64 , keys ... string ) * ExpectedInt
220221 ExpectZInterStore (destination string , store * redis.ZStore ) * ExpectedInt
222+ ExpectZMPop (order string , count int64 , keys ... string ) * ExpectedZSliceWithKey
221223 ExpectZMScore (key string , members ... string ) * ExpectedFloatSlice
222224 ExpectZPopMax (key string , count ... int64 ) * ExpectedZSlice
223225 ExpectZPopMin (key string , count ... int64 ) * ExpectedZSlice
@@ -1132,6 +1134,27 @@ func (cmd *ExpectedKeyValues) inflow(c redis.Cmder) {
11321134
11331135// ------------------------------------------------------------
11341136
1137+ type ExpectedZSliceWithKey struct {
1138+ expectedBase
1139+
1140+ key string
1141+ val []redis.Z
1142+ }
1143+
1144+ func (cmd * ExpectedZSliceWithKey ) SetVal (key string , val []redis.Z ) {
1145+ cmd .setVal = true
1146+ cmd .key = key
1147+ cmd .val = make ([]redis.Z , len (val ))
1148+ copy (cmd .val , val )
1149+ }
1150+
1151+ func (cmd * ExpectedZSliceWithKey ) inflow (c redis.Cmder ) {
1152+ inflow (c , "key" , cmd .key )
1153+ inflow (c , "val" , cmd .val )
1154+ }
1155+
1156+ // ------------------------------------------------------------
1157+
11351158type ExpectedSlowLog struct {
11361159 expectedBase
11371160
0 commit comments