Documentation ¶
Overview ¶
Package mock_cache is a generated GoMock package.
Index ¶
- type MockErrCacher
- type MockErrCacherCacheErrorCall
- func (c *MockErrCacherCacheErrorCall[K]) Do(f func(context.Context, K, error, time.Duration)) *MockErrCacherCacheErrorCall[K]
- func (c *MockErrCacherCacheErrorCall[K]) DoAndReturn(f func(context.Context, K, error, time.Duration)) *MockErrCacherCacheErrorCall[K]
- func (c *MockErrCacherCacheErrorCall[K]) Return() *MockErrCacherCacheErrorCall[K]
- type MockErrCacherGetErrorCall
- func (c *MockErrCacherGetErrorCall[K]) Do(f func(context.Context, K) error) *MockErrCacherGetErrorCall[K]
- func (c *MockErrCacherGetErrorCall[K]) DoAndReturn(f func(context.Context, K) error) *MockErrCacherGetErrorCall[K]
- func (c *MockErrCacherGetErrorCall[K]) Return(arg0 error) *MockErrCacherGetErrorCall[K]
- type MockErrCacherMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockErrCacher ¶
type MockErrCacher[K any] struct { // contains filtered or unexported fields }
MockErrCacher is a mock of ErrCacher interface.
func NewMockErrCacher ¶
func NewMockErrCacher[K any](ctrl *gomock.Controller) *MockErrCacher[K]
NewMockErrCacher creates a new mock instance.
func (*MockErrCacher[K]) CacheError ¶
CacheError mocks base method.
func (*MockErrCacher[K]) EXPECT ¶
func (m *MockErrCacher[K]) EXPECT() *MockErrCacherMockRecorder[K]
EXPECT returns an object that allows the caller to indicate expected use.
type MockErrCacherCacheErrorCall ¶
MockErrCacherCacheErrorCall wrap *gomock.Call
func (*MockErrCacherCacheErrorCall[K]) Do ¶
func (c *MockErrCacherCacheErrorCall[K]) Do(f func(context.Context, K, error, time.Duration)) *MockErrCacherCacheErrorCall[K]
Do rewrite *gomock.Call.Do
func (*MockErrCacherCacheErrorCall[K]) DoAndReturn ¶
func (c *MockErrCacherCacheErrorCall[K]) DoAndReturn(f func(context.Context, K, error, time.Duration)) *MockErrCacherCacheErrorCall[K]
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockErrCacherCacheErrorCall[K]) Return ¶
func (c *MockErrCacherCacheErrorCall[K]) Return() *MockErrCacherCacheErrorCall[K]
Return rewrite *gomock.Call.Return
type MockErrCacherGetErrorCall ¶
MockErrCacherGetErrorCall wrap *gomock.Call
func (*MockErrCacherGetErrorCall[K]) Do ¶
func (c *MockErrCacherGetErrorCall[K]) Do(f func(context.Context, K) error) *MockErrCacherGetErrorCall[K]
Do rewrite *gomock.Call.Do
func (*MockErrCacherGetErrorCall[K]) DoAndReturn ¶
func (c *MockErrCacherGetErrorCall[K]) DoAndReturn(f func(context.Context, K) error) *MockErrCacherGetErrorCall[K]
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockErrCacherGetErrorCall[K]) Return ¶
func (c *MockErrCacherGetErrorCall[K]) Return(arg0 error) *MockErrCacherGetErrorCall[K]
Return rewrite *gomock.Call.Return
type MockErrCacherMockRecorder ¶
type MockErrCacherMockRecorder[K any] struct { // contains filtered or unexported fields }
MockErrCacherMockRecorder is the mock recorder for MockErrCacher.
func (*MockErrCacherMockRecorder[K]) CacheError ¶
func (mr *MockErrCacherMockRecorder[K]) CacheError(ctx, key, err, errTTL any) *MockErrCacherCacheErrorCall[K]
CacheError indicates an expected call of CacheError.
func (*MockErrCacherMockRecorder[K]) GetError ¶
func (mr *MockErrCacherMockRecorder[K]) GetError(ctx, key any) *MockErrCacherGetErrorCall[K]
GetError indicates an expected call of GetError.