func (m *ClientMock) hasStub(method string) bool {
	for _, call := range m.ExpectedCalls {
		if call.Method == method && call.Repeatability > -1 {
			return true
		}
	}
	return false
}
hasStub check if a method has an expectation on it. This allows the calling
method to determine if the method call should be passed through to the real
redis client.
package redismock
import (
	"github.com/go-redis/redis/v7"
	"github.com/stretchr/testify/mock"
)
type ClientMock struct {
	mock.Mock
	client *redis.Client
}
func NewMock() *ClientMock {
	return new(ClientMock)
}
func NewNiceMock(client *redis.Client) *ClientMock {
	m := NewMock()
	m.client = client
	return m
}