Skip to content

Commit

Permalink
restore strongly typed slices to ExpectedIntSlice and ExpectedStringS…
Browse files Browse the repository at this point in the history
…lice
  • Loading branch information
ideasculptor authored and Samuel Gendler committed Feb 28, 2023
1 parent d933529 commit 358245b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,28 +453,28 @@ func (m *mock) ExpectDo(args ...interface{}) *ExpectedCmd {

func (m *mock) ExpectIntSliceDo(args ...interface{}) *ExpectedIntSlice {
e := &ExpectedIntSlice{}
e.cmd = redis.NewCmd(m.ctx, args...)
e.cmd = redis.NewIntSliceCmd(m.ctx, args...)
m.pushExpect(e)
return e
}

func (m *mock) ExpectIntDo(args ...interface{}) *ExpectedInt {
e := &ExpectedInt{}
e.cmd = redis.NewCmd(m.ctx, args...)
e.cmd = redis.NewIntCmd(m.ctx, args...)
m.pushExpect(e)
return e
}

func (m *mock) ExpectStringDo(args ...interface{}) *ExpectedString {
e := &ExpectedString{}
e.cmd = redis.NewCmd(m.ctx, args...)
e.cmd = redis.NewStringCmd(m.ctx, args...)
m.pushExpect(e)
return e
}

func (m *mock) ExpectStringSliceDo(args ...interface{}) *ExpectedStringSlice {
e := &ExpectedStringSlice{}
e.cmd = redis.NewCmd(m.ctx, args...)
e.cmd = redis.NewStringSliceCmd(m.ctx, args...)
m.pushExpect(e)
return e
}
Expand Down

0 comments on commit 358245b

Please sign in to comment.