mock

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0, MIT Imports: 9 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 MockPieceStore

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

MockPieceStore is a mock of PieceStore interface.

func NewMockPieceStore

func NewMockPieceStore(ctrl *gomock.Controller) *MockPieceStore

NewMockPieceStore creates a new mock instance.

func (*MockPieceStore) AddDealForPiece

func (m *MockPieceStore) AddDealForPiece(arg0, arg1 cid.Cid, arg2 piecestore.DealInfo) error

AddDealForPiece mocks base method.

func (*MockPieceStore) AddPieceBlockLocations

func (m *MockPieceStore) AddPieceBlockLocations(arg0 cid.Cid, arg1 map[cid.Cid]piecestore.BlockLocation) error

AddPieceBlockLocations mocks base method.

func (*MockPieceStore) EXPECT

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

func (*MockPieceStore) GetCIDInfo

func (m *MockPieceStore) GetCIDInfo(arg0 cid.Cid) (piecestore.CIDInfo, error)

GetCIDInfo mocks base method.

func (*MockPieceStore) GetPieceInfo

func (m *MockPieceStore) GetPieceInfo(arg0 cid.Cid) (piecestore.PieceInfo, error)

GetPieceInfo mocks base method.

func (*MockPieceStore) ListCidInfoKeys

func (m *MockPieceStore) ListCidInfoKeys() ([]cid.Cid, error)

ListCidInfoKeys mocks base method.

func (*MockPieceStore) ListPieceInfoKeys

func (m *MockPieceStore) ListPieceInfoKeys() ([]cid.Cid, error)

ListPieceInfoKeys mocks base method.

func (*MockPieceStore) OnReady

func (m *MockPieceStore) OnReady(arg0 shared.ReadyFunc)

OnReady mocks base method.

func (*MockPieceStore) Start

func (m *MockPieceStore) Start(arg0 context.Context) error

Start mocks base method.

type MockPieceStoreMockRecorder

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

MockPieceStoreMockRecorder is the mock recorder for MockPieceStore.

func (*MockPieceStoreMockRecorder) AddDealForPiece

func (mr *MockPieceStoreMockRecorder) AddDealForPiece(arg0, arg1, arg2 interface{}) *gomock.Call

AddDealForPiece indicates an expected call of AddDealForPiece.

func (*MockPieceStoreMockRecorder) AddPieceBlockLocations

func (mr *MockPieceStoreMockRecorder) AddPieceBlockLocations(arg0, arg1 interface{}) *gomock.Call

AddPieceBlockLocations indicates an expected call of AddPieceBlockLocations.

func (*MockPieceStoreMockRecorder) GetCIDInfo

func (mr *MockPieceStoreMockRecorder) GetCIDInfo(arg0 interface{}) *gomock.Call

GetCIDInfo indicates an expected call of GetCIDInfo.

func (*MockPieceStoreMockRecorder) GetPieceInfo

func (mr *MockPieceStoreMockRecorder) GetPieceInfo(arg0 interface{}) *gomock.Call

GetPieceInfo indicates an expected call of GetPieceInfo.

func (*MockPieceStoreMockRecorder) ListCidInfoKeys

func (mr *MockPieceStoreMockRecorder) ListCidInfoKeys() *gomock.Call

ListCidInfoKeys indicates an expected call of ListCidInfoKeys.

func (*MockPieceStoreMockRecorder) ListPieceInfoKeys

func (mr *MockPieceStoreMockRecorder) ListPieceInfoKeys() *gomock.Call

ListPieceInfoKeys indicates an expected call of ListPieceInfoKeys.

func (*MockPieceStoreMockRecorder) OnReady

func (mr *MockPieceStoreMockRecorder) OnReady(arg0 interface{}) *gomock.Call

OnReady indicates an expected call of OnReady.

func (*MockPieceStoreMockRecorder) Start

func (mr *MockPieceStoreMockRecorder) Start(arg0 interface{}) *gomock.Call

Start indicates an expected call of Start.

type MockRetrievalProvider

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

MockRetrievalProvider is a mock of RetrievalProvider interface.

func NewMockRetrievalProvider

func NewMockRetrievalProvider(ctrl *gomock.Controller) *MockRetrievalProvider

NewMockRetrievalProvider creates a new mock instance.

func (*MockRetrievalProvider) EXPECT

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

func (*MockRetrievalProvider) GetAsk

GetAsk mocks base method.

func (*MockRetrievalProvider) GetDynamicAsk

GetDynamicAsk mocks base method.

func (*MockRetrievalProvider) ListDeals

ListDeals mocks base method.

func (*MockRetrievalProvider) OnReady

func (m *MockRetrievalProvider) OnReady(arg0 shared.ReadyFunc)

OnReady mocks base method.

func (*MockRetrievalProvider) SetAsk

func (m *MockRetrievalProvider) SetAsk(arg0 *retrievalmarket.Ask)

SetAsk mocks base method.

func (*MockRetrievalProvider) Start

func (m *MockRetrievalProvider) Start(arg0 context.Context) error

Start mocks base method.

func (*MockRetrievalProvider) Stop

func (m *MockRetrievalProvider) Stop() error

Stop mocks base method.

func (*MockRetrievalProvider) SubscribeToEvents

SubscribeToEvents mocks base method.

func (*MockRetrievalProvider) SubscribeToQueryEvents added in v1.5.1

SubscribeToQueryEvents mocks base method.

func (*MockRetrievalProvider) SubscribeToValidationEvents added in v1.5.1

SubscribeToValidationEvents mocks base method.

type MockRetrievalProviderMockRecorder

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

MockRetrievalProviderMockRecorder is the mock recorder for MockRetrievalProvider.

func (*MockRetrievalProviderMockRecorder) GetAsk

GetAsk indicates an expected call of GetAsk.

func (*MockRetrievalProviderMockRecorder) GetDynamicAsk

func (mr *MockRetrievalProviderMockRecorder) GetDynamicAsk(arg0, arg1, arg2 interface{}) *gomock.Call

GetDynamicAsk indicates an expected call of GetDynamicAsk.

func (*MockRetrievalProviderMockRecorder) ListDeals

ListDeals indicates an expected call of ListDeals.

func (*MockRetrievalProviderMockRecorder) OnReady

func (mr *MockRetrievalProviderMockRecorder) OnReady(arg0 interface{}) *gomock.Call

OnReady indicates an expected call of OnReady.

func (*MockRetrievalProviderMockRecorder) SetAsk

func (mr *MockRetrievalProviderMockRecorder) SetAsk(arg0 interface{}) *gomock.Call

SetAsk indicates an expected call of SetAsk.

func (*MockRetrievalProviderMockRecorder) Start

func (mr *MockRetrievalProviderMockRecorder) Start(arg0 interface{}) *gomock.Call

Start indicates an expected call of Start.

func (*MockRetrievalProviderMockRecorder) Stop

Stop indicates an expected call of Stop.

func (*MockRetrievalProviderMockRecorder) SubscribeToEvents

func (mr *MockRetrievalProviderMockRecorder) SubscribeToEvents(arg0 interface{}) *gomock.Call

SubscribeToEvents indicates an expected call of SubscribeToEvents.

func (*MockRetrievalProviderMockRecorder) SubscribeToQueryEvents added in v1.5.1

func (mr *MockRetrievalProviderMockRecorder) SubscribeToQueryEvents(arg0 interface{}) *gomock.Call

SubscribeToQueryEvents indicates an expected call of SubscribeToQueryEvents.

func (*MockRetrievalProviderMockRecorder) SubscribeToValidationEvents added in v1.5.1

func (mr *MockRetrievalProviderMockRecorder) SubscribeToValidationEvents(arg0 interface{}) *gomock.Call

SubscribeToValidationEvents indicates an expected call of SubscribeToValidationEvents.

type MockSectorAccessor

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

MockSectorAccessor is a mock of SectorAccessor interface.

func NewMockSectorAccessor

func NewMockSectorAccessor(ctrl *gomock.Controller) *MockSectorAccessor

NewMockSectorAccessor creates a new mock instance.

func (*MockSectorAccessor) EXPECT

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

func (*MockSectorAccessor) IsUnsealed

func (m *MockSectorAccessor) IsUnsealed(arg0 context.Context, arg1 abi.SectorNumber, arg2, arg3 abi.UnpaddedPieceSize) (bool, error)

IsUnsealed mocks base method.

func (*MockSectorAccessor) UnsealSector

func (m *MockSectorAccessor) UnsealSector(arg0 context.Context, arg1 abi.SectorNumber, arg2, arg3 abi.UnpaddedPieceSize) (io.ReadCloser, error)

UnsealSector mocks base method.

type MockSectorAccessorMockRecorder

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

MockSectorAccessorMockRecorder is the mock recorder for MockSectorAccessor.

func (*MockSectorAccessorMockRecorder) IsUnsealed

func (mr *MockSectorAccessorMockRecorder) IsUnsealed(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

IsUnsealed indicates an expected call of IsUnsealed.

func (*MockSectorAccessorMockRecorder) UnsealSector

func (mr *MockSectorAccessorMockRecorder) UnsealSector(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

UnsealSector indicates an expected call of UnsealSector.

Jump to

Keyboard shortcuts

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