mock

package
v0.0.0-...-0ff5682 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: internal/platform/storage/storage.go

Generated by this command:

mockgen -source=internal/platform/storage/storage.go -destination=internal/platform/storage/mock/storage.go -package=mock

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 MockService

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

MockService is a mock of Service interface.

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

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

func (*MockService) Get

func (m *MockService) Get(key []byte) ([]byte, error)

Get mocks base method.

func (*MockService) GetKeysWithPrefix

func (m *MockService) GetKeysWithPrefix(prefix []byte, reverse ...bool) ([][]byte, error)

GetKeysWithPrefix mocks base method.

func (*MockService) NewTransaction

func (m *MockService) NewTransaction() storage.Tx

NewTransaction mocks base method.

func (*MockService) Set

func (m *MockService) Set(key, value []byte) error

Set mocks base method.

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) Get

func (mr *MockServiceMockRecorder) Get(key any) *gomock.Call

Get indicates an expected call of Get.

func (*MockServiceMockRecorder) GetKeysWithPrefix

func (mr *MockServiceMockRecorder) GetKeysWithPrefix(prefix any, reverse ...any) *gomock.Call

GetKeysWithPrefix indicates an expected call of GetKeysWithPrefix.

func (*MockServiceMockRecorder) NewTransaction

func (mr *MockServiceMockRecorder) NewTransaction() *gomock.Call

NewTransaction indicates an expected call of NewTransaction.

func (*MockServiceMockRecorder) Set

func (mr *MockServiceMockRecorder) Set(key, value any) *gomock.Call

Set indicates an expected call of Set.

type MockTx

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

MockTx is a mock of Tx interface.

func NewMockTx

func NewMockTx(ctrl *gomock.Controller) *MockTx

NewMockTx creates a new mock instance.

func (*MockTx) Commit

func (m *MockTx) Commit() error

Commit mocks base method.

func (*MockTx) Delete

func (m *MockTx) Delete(key []byte) error

Delete mocks base method.

func (*MockTx) Discard

func (m *MockTx) Discard()

Discard mocks base method.

func (*MockTx) EXPECT

func (m *MockTx) EXPECT() *MockTxMockRecorder

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

func (*MockTx) FilterKeysWithPrefix

func (m *MockTx) FilterKeysWithPrefix(prefix []byte, from, to string) [][]byte

FilterKeysWithPrefix mocks base method.

func (*MockTx) Get

func (m *MockTx) Get(key []byte) ([]byte, error)

Get mocks base method.

func (*MockTx) GetKeysWithPrefix

func (m *MockTx) GetKeysWithPrefix(prefix []byte, reverse ...bool) [][]byte

GetKeysWithPrefix mocks base method.

func (*MockTx) GetValuesWithPrefix

func (m *MockTx) GetValuesWithPrefix(prefix []byte, reverse ...bool) [][]byte

GetValuesWithPrefix mocks base method.

func (*MockTx) Set

func (m *MockTx) Set(key, value []byte) error

Set mocks base method.

type MockTxMockRecorder

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

MockTxMockRecorder is the mock recorder for MockTx.

func (*MockTxMockRecorder) Commit

func (mr *MockTxMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockTxMockRecorder) Delete

func (mr *MockTxMockRecorder) Delete(key any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockTxMockRecorder) Discard

func (mr *MockTxMockRecorder) Discard() *gomock.Call

Discard indicates an expected call of Discard.

func (*MockTxMockRecorder) FilterKeysWithPrefix

func (mr *MockTxMockRecorder) FilterKeysWithPrefix(prefix, from, to any) *gomock.Call

FilterKeysWithPrefix indicates an expected call of FilterKeysWithPrefix.

func (*MockTxMockRecorder) Get

func (mr *MockTxMockRecorder) Get(key any) *gomock.Call

Get indicates an expected call of Get.

func (*MockTxMockRecorder) GetKeysWithPrefix

func (mr *MockTxMockRecorder) GetKeysWithPrefix(prefix any, reverse ...any) *gomock.Call

GetKeysWithPrefix indicates an expected call of GetKeysWithPrefix.

func (*MockTxMockRecorder) GetValuesWithPrefix

func (mr *MockTxMockRecorder) GetValuesWithPrefix(prefix any, reverse ...any) *gomock.Call

GetValuesWithPrefix indicates an expected call of GetValuesWithPrefix.

func (*MockTxMockRecorder) Set

func (mr *MockTxMockRecorder) Set(key, value any) *gomock.Call

Set indicates an expected call of Set.

Jump to

Keyboard shortcuts

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