mock_cache

package
v17.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

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 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 MockErrCacherCacheErrorCall

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

MockErrCacherCacheErrorCall wrap *gomock.Call

func (*MockErrCacherCacheErrorCall[K]) Do

Do rewrite *gomock.Call.Do

func (*MockErrCacherCacheErrorCall[K]) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockErrCacherCacheErrorCall[K]) Return

Return rewrite *gomock.Call.Return

type MockErrCacherGetErrorCall

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

MockErrCacherGetErrorCall wrap *gomock.Call

func (*MockErrCacherGetErrorCall[K]) Do

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

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.

Jump to

Keyboard shortcuts

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