smtestutil

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MinerStub

type MinerStub struct {
	*mock_types.MockDealPublisher
	*mock_types.MockChainDealManager
	*mock_types.MockPieceAdder
	*mock_types.MockCommpCalculator
	// contains filtered or unexported fields
}

func NewMinerStub

func NewMinerStub(ctrl *gomock.Controller) *MinerStub

func (*MinerStub) ForDeal

func (ms *MinerStub) ForDeal(dp *types.DealParams, publishCid, finalPublishCid cid.Cid, dealId abi.DealID, sectorId abi.SectorNumber,
	offset abi.PaddedPieceSize) *MinerStubBuilder

func (*MinerStub) UnblockAddPiece

func (ms *MinerStub) UnblockAddPiece(id uuid.UUID)

func (*MinerStub) UnblockCommp added in v1.4.0

func (ms *MinerStub) UnblockCommp(id uuid.UUID)

func (*MinerStub) UnblockPublish

func (ms *MinerStub) UnblockPublish(id uuid.UUID)

func (*MinerStub) UnblockWaitForPublish

func (ms *MinerStub) UnblockWaitForPublish(id uuid.UUID)

type MinerStubBuilder

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

func (*MinerStubBuilder) Output

func (mb *MinerStubBuilder) Output() *StubbedMinerOutput

func (*MinerStubBuilder) SetupAddPiece

func (mb *MinerStubBuilder) SetupAddPiece(blocking bool) *MinerStubBuilder

func (*MinerStubBuilder) SetupAddPieceFailure

func (mb *MinerStubBuilder) SetupAddPieceFailure(err error)

func (*MinerStubBuilder) SetupAllBlocking

func (mb *MinerStubBuilder) SetupAllBlocking() *MinerStubBuilder

func (*MinerStubBuilder) SetupAllNonBlocking

func (mb *MinerStubBuilder) SetupAllNonBlocking() *MinerStubBuilder

func (*MinerStubBuilder) SetupCommp added in v1.4.0

func (mb *MinerStubBuilder) SetupCommp(blocking bool) *MinerStubBuilder

func (*MinerStubBuilder) SetupCommpFailure added in v1.4.0

func (mb *MinerStubBuilder) SetupCommpFailure(err error)

func (*MinerStubBuilder) SetupNoOp

func (mb *MinerStubBuilder) SetupNoOp() *MinerStubBuilder

func (*MinerStubBuilder) SetupPublish

func (mb *MinerStubBuilder) SetupPublish(blocking bool) *MinerStubBuilder

func (*MinerStubBuilder) SetupPublishConfirm

func (mb *MinerStubBuilder) SetupPublishConfirm(blocking bool) *MinerStubBuilder

func (*MinerStubBuilder) SetupPublishConfirmFailure

func (mb *MinerStubBuilder) SetupPublishConfirmFailure(err error) *MinerStubBuilder

func (*MinerStubBuilder) SetupPublishFailure

func (mb *MinerStubBuilder) SetupPublishFailure(err error) *MinerStubBuilder

type StubbedMinerOutput

type StubbedMinerOutput struct {
	PublishCid      cid.Cid
	FinalPublishCid cid.Cid
	DealID          abi.DealID
	SealedBytes     *[]byte
	SectorID        abi.SectorNumber
	Offset          abi.PaddedPieceSize
}

Jump to

Keyboard shortcuts

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