File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ type baseMock interface {
27
27
// MatchExpectationsInOrder gives an option whether to match all expectations in the order they were set or not.
28
28
MatchExpectationsInOrder (b bool )
29
29
30
+ ExpectDo (args ... interface {}) * ExpectedCmd
30
31
ExpectIntSliceDo (args ... interface {}) * ExpectedIntSlice
31
32
ExpectIntDo (args ... interface {}) * ExpectedInt
32
33
ExpectStringSliceDo (args ... interface {}) * ExpectedStringSlice
Original file line number Diff line number Diff line change @@ -408,6 +408,13 @@ func (m *mock) ExpectWatch(keys ...string) *ExpectedError {
408
408
return e
409
409
}
410
410
411
+ func (m * mock ) ExpectDo (args ... interface {}) * ExpectedCmd {
412
+ e := & ExpectedCmd {}
413
+ e .cmd = redis .NewCmd (m .ctx , args ... )
414
+ m .pushExpect (e )
415
+ return e
416
+ }
417
+
411
418
func (m * mock ) ExpectIntSliceDo (args ... interface {}) * ExpectedIntSlice {
412
419
e := & ExpectedIntSlice {}
413
420
e .cmd = redis .NewIntSliceCmd (m .ctx , args ... )
You can’t perform that action at this time.
0 commit comments