mock

package
v0.0.0-...-1b5d5a7 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAdapter

type MockAdapter struct {
	// contains filtered or unexported fields
}

MockAdapter is a mock of Adapter interface.

func NewMockAdapter

func NewMockAdapter(ctrl *gomock.Controller) *MockAdapter

NewMockAdapter creates a new mock instance.

func (*MockAdapter) EXPECT

func (m *MockAdapter) EXPECT() *MockAdapterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAdapter) Get

func (m *MockAdapter) Get(ctx context.Context, key string, value interface{}) error

Get mocks base method.

func (*MockAdapter) IncrBy

func (m *MockAdapter) IncrBy(ctx context.Context, key string, value int64) error

IncrBy mocks base method.

func (*MockAdapter) Set

func (m *MockAdapter) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) error

Set mocks base method.

func (*MockAdapter) SumKeys

func (m *MockAdapter) SumKeys(ctx context.Context, keys []string) (int64, error)

SumKeys mocks base method.

type MockAdapterMockRecorder

type MockAdapterMockRecorder struct {
	// contains filtered or unexported fields
}

MockAdapterMockRecorder is the mock recorder for MockAdapter.

func (*MockAdapterMockRecorder) Get

func (mr *MockAdapterMockRecorder) Get(ctx, key, value interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockAdapterMockRecorder) IncrBy

func (mr *MockAdapterMockRecorder) IncrBy(ctx, key, value interface{}) *gomock.Call

IncrBy indicates an expected call of IncrBy.

func (*MockAdapterMockRecorder) Set

func (mr *MockAdapterMockRecorder) Set(ctx, key, value, expiration interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockAdapterMockRecorder) SumKeys

func (mr *MockAdapterMockRecorder) SumKeys(ctx, keys interface{}) *gomock.Call

SumKeys indicates an expected call of SumKeys.

Jump to

Keyboard shortcuts

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