Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ../../cache/cache_with_err.go
Generated by this command:
mockgen -typed -source ../../cache/cache_with_err.go -destination cache.go -package mock_cache
Package mock_cache is a generated GoMock package.
Index ¶
- type ErrCacherCacheErrorCall
- func (c *ErrCacherCacheErrorCall[K]) Do(f func(context.Context, K, error, time.Duration)) *ErrCacherCacheErrorCall[K]
- func (c *ErrCacherCacheErrorCall[K]) DoAndReturn(f func(context.Context, K, error, time.Duration)) *ErrCacherCacheErrorCall[K]
- func (c *ErrCacherCacheErrorCall[K]) Return() *ErrCacherCacheErrorCall[K]
- type ErrCacherGetErrorCall
- type MockErrCacher
- type MockErrCacherMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrCacherCacheErrorCall ¶ added in v16.5.0
ErrCacherCacheErrorCall wrap *gomock.Call
func (*ErrCacherCacheErrorCall[K]) Do ¶ added in v16.5.0
func (c *ErrCacherCacheErrorCall[K]) Do(f func(context.Context, K, error, time.Duration)) *ErrCacherCacheErrorCall[K]
Do rewrite *gomock.Call.Do
func (*ErrCacherCacheErrorCall[K]) DoAndReturn ¶ added in v16.5.0
func (c *ErrCacherCacheErrorCall[K]) DoAndReturn(f func(context.Context, K, error, time.Duration)) *ErrCacherCacheErrorCall[K]
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ErrCacherCacheErrorCall[K]) Return ¶ added in v16.5.0
func (c *ErrCacherCacheErrorCall[K]) Return() *ErrCacherCacheErrorCall[K]
Return rewrite *gomock.Call.Return
type ErrCacherGetErrorCall ¶ added in v16.5.0
ErrCacherGetErrorCall wrap *gomock.Call
func (*ErrCacherGetErrorCall[K]) Do ¶ added in v16.5.0
func (c *ErrCacherGetErrorCall[K]) Do(f func(context.Context, K) error) *ErrCacherGetErrorCall[K]
Do rewrite *gomock.Call.Do
func (*ErrCacherGetErrorCall[K]) DoAndReturn ¶ added in v16.5.0
func (c *ErrCacherGetErrorCall[K]) DoAndReturn(f func(context.Context, K) error) *ErrCacherGetErrorCall[K]
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ErrCacherGetErrorCall[K]) Return ¶ added in v16.5.0
func (c *ErrCacherGetErrorCall[K]) Return(arg0 error) *ErrCacherGetErrorCall[K]
Return rewrite *gomock.Call.Return
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 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) *ErrCacherCacheErrorCall[K]
CacheError indicates an expected call of CacheError.
func (*MockErrCacherMockRecorder[K]) GetError ¶
func (mr *MockErrCacherMockRecorder[K]) GetError(ctx, key any) *ErrCacherGetErrorCall[K]
GetError indicates an expected call of GetError.