Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInMemoryRedis ¶
func NewInMemoryRedis() (*redis.Client, func())
Types ¶
type CacheCallCounts ¶
type MockCacheOptions ¶
type MockCacheType ¶
type MockCacheType int
const ( MockCacheTypeRedis MockCacheType = iota MockCacheTypeInMem )
type MockRepoCache ¶
type MockRepoCache struct { mock.Mock RedisClient *cacheutilmocks.MockCacheClient StopRedisCallback func() }
func NewMockRepoCache ¶
func NewMockRepoCache(cacheOpts *MockCacheOptions) *MockRepoCache
func (*MockRepoCache) AssertCacheCalledTimes ¶
func (mockCache *MockRepoCache) AssertCacheCalledTimes(t *testing.T, calls *CacheCallCounts)
Checks that the cache was called the expected number of times
func (*MockRepoCache) ConfigureDefaultCallbacks ¶
func (mockCache *MockRepoCache) ConfigureDefaultCallbacks()
Click to show internal directories.
Click to hide internal directories.