mock

package
v1.5.19 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: Apache-2.0 Imports: 7 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) 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, contentType string, isPublicRead bool) (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) 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, contentType, isPublicRead 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) CreateRewardsQueueItem added in v1.5.5

func (m *MockIndexStorage) CreateRewardsQueueItem(ctx context.Context, addr string, reward int64) error

CreateRewardsQueueItem mocks base method

func (*MockIndexStorage) DeletePDV added in v1.4.3

func (m *MockIndexStorage) DeletePDV(ctx context.Context, owner string) error

DeletePDV mocks base method

func (*MockIndexStorage) DeleteProfile added in v1.2.0

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

DeleteProfile mocks base method

func (*MockIndexStorage) DeleteRewardsQueueItem added in v1.5.5

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

DeleteRewardsQueueItem 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) GetPDVDelta added in v1.5.4

func (m *MockIndexStorage) GetPDVDelta(ctx context.Context, address string) (float64, error)

GetPDVDelta mocks base method

func (*MockIndexStorage) GetPDVDeltaList added in v1.5.5

func (m *MockIndexStorage) GetPDVDeltaList(ctx context.Context) ([]*storage.PDVDelta, error)

GetPDVDeltaList mocks base method

func (*MockIndexStorage) GetPDVMeta added in v1.4.0

func (m *MockIndexStorage) GetPDVMeta(ctx context.Context, address string, id uint64) (*entities.PDVMeta, error)

GetPDVMeta mocks base method

func (*MockIndexStorage) GetPDVRewardsDistributedDate added in v1.5.4

func (m *MockIndexStorage) GetPDVRewardsDistributedDate(ctx context.Context) (time.Time, error)

GetPDVRewardsDistributedDate mocks base method

func (*MockIndexStorage) GetPDVTotalDelta added in v1.5.4

func (m *MockIndexStorage) GetPDVTotalDelta(ctx context.Context) (float64, error)

GetPDVTotalDelta 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) GetRewardsQueueItemList added in v1.5.5

func (m *MockIndexStorage) GetRewardsQueueItemList(ctx context.Context) ([]*storage.RewardsQueueItem, error)

GetRewardsQueueItemList mocks base method

func (*MockIndexStorage) InTx added in v1.2.0

InTx mocks base method

func (*MockIndexStorage) ListPDV added in v1.4.0

func (m *MockIndexStorage) ListPDV(ctx context.Context, owner string, from uint64, limit uint16) ([]uint64, error)

ListPDV 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) SetPDVMeta added in v1.4.0

func (m_2 *MockIndexStorage) SetPDVMeta(ctx context.Context, address string, id uint64, tx string, m *entities.PDVMeta) error

SetPDVMeta mocks base method

func (*MockIndexStorage) SetPDVRewardsDistributedDate added in v1.5.4

func (m *MockIndexStorage) SetPDVRewardsDistributedDate(ctx context.Context, date time.Time) error

SetPDVRewardsDistributedDate 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) CreateRewardsQueueItem added in v1.5.5

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

CreateRewardsQueueItem indicates an expected call of CreateRewardsQueueItem

func (*MockIndexStorageMockRecorder) DeletePDV added in v1.4.3

func (mr *MockIndexStorageMockRecorder) DeletePDV(ctx, owner interface{}) *gomock.Call

DeletePDV indicates an expected call of DeletePDV

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) DeleteRewardsQueueItem added in v1.5.5

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

DeleteRewardsQueueItem indicates an expected call of DeleteRewardsQueueItem

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) GetPDVDelta added in v1.5.4

func (mr *MockIndexStorageMockRecorder) GetPDVDelta(ctx, address interface{}) *gomock.Call

GetPDVDelta indicates an expected call of GetPDVDelta

func (*MockIndexStorageMockRecorder) GetPDVDeltaList added in v1.5.5

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

GetPDVDeltaList indicates an expected call of GetPDVDeltaList

func (*MockIndexStorageMockRecorder) GetPDVMeta added in v1.4.0

func (mr *MockIndexStorageMockRecorder) GetPDVMeta(ctx, address, id interface{}) *gomock.Call

GetPDVMeta indicates an expected call of GetPDVMeta

func (*MockIndexStorageMockRecorder) GetPDVRewardsDistributedDate added in v1.5.4

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

GetPDVRewardsDistributedDate indicates an expected call of GetPDVRewardsDistributedDate

func (*MockIndexStorageMockRecorder) GetPDVTotalDelta added in v1.5.4

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

GetPDVTotalDelta indicates an expected call of GetPDVTotalDelta

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) GetRewardsQueueItemList added in v1.5.5

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

GetRewardsQueueItemList indicates an expected call of GetRewardsQueueItemList

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) ListPDV added in v1.4.0

func (mr *MockIndexStorageMockRecorder) ListPDV(ctx, owner, from, limit interface{}) *gomock.Call

ListPDV indicates an expected call of ListPDV

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) SetPDVMeta added in v1.4.0

func (mr *MockIndexStorageMockRecorder) SetPDVMeta(ctx, address, id, tx, m interface{}) *gomock.Call

SetPDVMeta indicates an expected call of SetPDVMeta

func (*MockIndexStorageMockRecorder) SetPDVRewardsDistributedDate added in v1.5.4

func (mr *MockIndexStorageMockRecorder) SetPDVRewardsDistributedDate(ctx, date interface{}) *gomock.Call

SetPDVRewardsDistributedDate indicates an expected call of SetPDVRewardsDistributedDate

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