mock_cache

package
v16.11.10 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 added in v16.8.0

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

MockErrCacherCacheErrorCall wrap *gomock.Call

func (*MockErrCacherCacheErrorCall[K]) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockErrCacherCacheErrorCall[K]) DoAndReturn added in v16.8.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockErrCacherCacheErrorCall[K]) Return added in v16.8.0

Return rewrite *gomock.Call.Return

type MockErrCacherGetErrorCall added in v16.8.0

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

MockErrCacherGetErrorCall wrap *gomock.Call

func (*MockErrCacherGetErrorCall[K]) Do added in v16.8.0

Do rewrite *gomock.Call.Do

func (*MockErrCacherGetErrorCall[K]) DoAndReturn added in v16.8.0

func (c *MockErrCacherGetErrorCall[K]) DoAndReturn(f func(context.Context, K) error) *MockErrCacherGetErrorCall[K]

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockErrCacherGetErrorCall[K]) Return added in v16.8.0

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