mock

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

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 MockFileStorage added in v1.2.0

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

MockFileStorage is a mock of FileStorage interface

func NewMockFileStorage added in v1.2.0

func NewMockFileStorage(ctrl *gomock.Controller) *MockFileStorage

NewMockFileStorage creates a new mock instance

func (*MockFileStorage) DeleteData added in v1.2.0

func (m *MockFileStorage) DeleteData(ctx context.Context, address string) error

DeleteData mocks base method

func (*MockFileStorage) EXPECT added in v1.2.0

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

func (*MockFileStorage) List added in v1.2.0

func (m *MockFileStorage) List(ctx context.Context, prefix string, from uint64, limit uint16) ([]string, error)

List mocks base method

func (*MockFileStorage) Ping added in v1.2.0

func (m *MockFileStorage) Ping(ctx context.Context) error

Ping mocks base method

func (*MockFileStorage) Read added in v1.2.0

func (m *MockFileStorage) Read(ctx context.Context, path string) (io.ReadCloser, error)

Read mocks base method

func (*MockFileStorage) Write added in v1.2.0

func (m *MockFileStorage) Write(ctx context.Context, data io.Reader, size int64, path string) error

Write mocks base method

type MockFileStorageMockRecorder added in v1.2.0

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

MockFileStorageMockRecorder is the mock recorder for MockFileStorage

func (*MockFileStorageMockRecorder) DeleteData added in v1.2.0

func (mr *MockFileStorageMockRecorder) DeleteData(ctx, address interface{}) *gomock.Call

DeleteData indicates an expected call of DeleteData

func (*MockFileStorageMockRecorder) List added in v1.2.0

func (mr *MockFileStorageMockRecorder) List(ctx, prefix, from, limit interface{}) *gomock.Call

List indicates an expected call of List

func (*MockFileStorageMockRecorder) Ping added in v1.2.0

func (mr *MockFileStorageMockRecorder) Ping(ctx interface{}) *gomock.Call

Ping indicates an expected call of Ping

func (*MockFileStorageMockRecorder) Read added in v1.2.0

func (mr *MockFileStorageMockRecorder) Read(ctx, path interface{}) *gomock.Call

Read indicates an expected call of Read

func (*MockFileStorageMockRecorder) Write added in v1.2.0

func (mr *MockFileStorageMockRecorder) Write(ctx, data, size, path interface{}) *gomock.Call

Write indicates an expected call of Write

type MockIndexStorage added in v1.2.0

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

MockIndexStorage is a mock of IndexStorage interface

func NewMockIndexStorage added in v1.2.0

func NewMockIndexStorage(ctrl *gomock.Controller) *MockIndexStorage

NewMockIndexStorage creates a new mock instance

func (*MockIndexStorage) DeleteProfile added in v1.2.0

func (m *MockIndexStorage) DeleteProfile(ctx context.Context, addr string) error

DeleteProfile mocks base method

func (*MockIndexStorage) EXPECT added in v1.2.0

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

func (*MockIndexStorage) GetHeight added in v1.2.0

func (m *MockIndexStorage) GetHeight(ctx context.Context) (uint64, error)

GetHeight mocks base method

func (*MockIndexStorage) GetProfile added in v1.2.0

func (m *MockIndexStorage) GetProfile(ctx context.Context, addr string) (*storage.Profile, error)

GetProfile mocks base method

func (*MockIndexStorage) GetProfiles added in v1.2.0

func (m *MockIndexStorage) GetProfiles(ctx context.Context, addr []string) ([]*storage.Profile, error)

GetProfiles mocks base method

func (*MockIndexStorage) InTx added in v1.2.0

InTx mocks base method

func (*MockIndexStorage) SetHeight added in v1.2.0

func (m *MockIndexStorage) SetHeight(ctx context.Context, height uint64) error

SetHeight mocks base method

func (*MockIndexStorage) SetProfile added in v1.2.0

SetProfile mocks base method

type MockIndexStorageMockRecorder added in v1.2.0

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

MockIndexStorageMockRecorder is the mock recorder for MockIndexStorage

func (*MockIndexStorageMockRecorder) DeleteProfile added in v1.2.0

func (mr *MockIndexStorageMockRecorder) DeleteProfile(ctx, addr interface{}) *gomock.Call

DeleteProfile indicates an expected call of DeleteProfile

func (*MockIndexStorageMockRecorder) GetHeight added in v1.2.0

func (mr *MockIndexStorageMockRecorder) GetHeight(ctx interface{}) *gomock.Call

GetHeight indicates an expected call of GetHeight

func (*MockIndexStorageMockRecorder) GetProfile added in v1.2.0

func (mr *MockIndexStorageMockRecorder) GetProfile(ctx, addr interface{}) *gomock.Call

GetProfile indicates an expected call of GetProfile

func (*MockIndexStorageMockRecorder) GetProfiles added in v1.2.0

func (mr *MockIndexStorageMockRecorder) GetProfiles(ctx, addr interface{}) *gomock.Call

GetProfiles indicates an expected call of GetProfiles

func (*MockIndexStorageMockRecorder) InTx added in v1.2.0

func (mr *MockIndexStorageMockRecorder) InTx(ctx, f interface{}) *gomock.Call

InTx indicates an expected call of InTx

func (*MockIndexStorageMockRecorder) SetHeight added in v1.2.0

func (mr *MockIndexStorageMockRecorder) SetHeight(ctx, height interface{}) *gomock.Call

SetHeight indicates an expected call of SetHeight

func (*MockIndexStorageMockRecorder) SetProfile added in v1.2.0

func (mr *MockIndexStorageMockRecorder) SetProfile(ctx, p interface{}) *gomock.Call

SetProfile indicates an expected call of SetProfile

Jump to

Keyboard shortcuts

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