@@ -123,6 +123,7 @@ type baseMock interface {
123123 ExpectHRandFieldWithValues (key string , count int ) * ExpectedKeyValueSlice
124124
125125 ExpectBLPop (timeout time.Duration , keys ... string ) * ExpectedStringSlice
126+ ExpectBLMPop (timeout time.Duration , direction string , count int64 , keys ... string ) * ExpectedKeyValues
126127 ExpectBRPop (timeout time.Duration , keys ... string ) * ExpectedStringSlice
127128 ExpectBRPopLPush (source , destination string , timeout time.Duration ) * ExpectedString
128129 ExpectLIndex (key string , index int64 ) * ExpectedString
@@ -132,6 +133,7 @@ type baseMock interface {
132133 ExpectLLen (key string ) * ExpectedInt
133134 ExpectLPop (key string ) * ExpectedString
134135 ExpectLPopCount (key string , count int ) * ExpectedStringSlice
136+ ExpectLMPop (direction string , count int64 , keys ... string ) * ExpectedKeyValues
135137 ExpectLPos (key string , value string , args redis.LPosArgs ) * ExpectedInt
136138 ExpectLPosCount (key string , value string , count int64 , args redis.LPosArgs ) * ExpectedIntSlice
137139 ExpectLPush (key string , values ... interface {}) * ExpectedInt
@@ -1109,6 +1111,27 @@ func (cmd *ExpectedGeoSearchLocation) inflow(c redis.Cmder) {
11091111
11101112// ------------------------------------------------------------
11111113
1114+ type ExpectedKeyValues struct {
1115+ expectedBase
1116+
1117+ key string
1118+ val []string
1119+ }
1120+
1121+ func (cmd * ExpectedKeyValues ) SetVal (key string , val []string ) {
1122+ cmd .setVal = true
1123+ cmd .key = key
1124+ cmd .val = make ([]string , len (val ))
1125+ copy (cmd .val , val )
1126+ }
1127+
1128+ func (cmd * ExpectedKeyValues ) inflow (c redis.Cmder ) {
1129+ inflow (c , "key" , cmd .key )
1130+ inflow (c , "val" , cmd .val )
1131+ }
1132+
1133+ // ------------------------------------------------------------
1134+
11121135type ExpectedSlowLog struct {
11131136 expectedBase
11141137
0 commit comments