mock_cache

package
v16.5.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 4 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrCacherCacheErrorCall added in v16.5.0

type ErrCacherCacheErrorCall[K any] struct {
	*gomock.Call
}

ErrCacherCacheErrorCall wrap *gomock.Call

func (*ErrCacherCacheErrorCall[K]) Do added in v16.5.0

Do rewrite *gomock.Call.Do

func (*ErrCacherCacheErrorCall[K]) DoAndReturn added in v16.5.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ErrCacherCacheErrorCall[K]) Return added in v16.5.0

Return rewrite *gomock.Call.Return

type ErrCacherGetErrorCall added in v16.5.0

type ErrCacherGetErrorCall[K any] struct {
	*gomock.Call
}

ErrCacherGetErrorCall wrap *gomock.Call

func (*ErrCacherGetErrorCall[K]) Do added in v16.5.0

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

func (m *MockErrCacher[K]) CacheError(ctx context.Context, key K, err error, errTtl time.Duration)

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.

func (*MockErrCacher[K]) GetError

func (m *MockErrCacher[K]) GetError(ctx context.Context, key K) error

GetError mocks base method.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL