mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DealsRepo

type DealsRepo struct {
	mock.Mock
}

DealsRepo is an autogenerated mock type for the DealsRepo type

func (*DealsRepo) BulkWrite

func (_m *DealsRepo) BulkWrite(deals []*bsontypes.MarketDeal) error

BulkWrite provides a mock function with given fields: deals

func (*DealsRepo) CreateIndexes

func (_m *DealsRepo) CreateIndexes() error

CreateIndexes provides a mock function with given fields:

func (*DealsRepo) Find

func (_m *DealsRepo) Find(filter primitive.M, page uint64, perPage uint64) ([]*bsontypes.MarketDeal, error)

Find provides a mock function with given fields: filter, page, perPage

func (*DealsRepo) GetDeal

func (_m *DealsRepo) GetDeal(dealID uint64) (*bsontypes.MarketDeal, error)

GetDeal provides a mock function with given fields: dealID

func (*DealsRepo) Miners

func (_m *DealsRepo) Miners() ([]string, error)

Miners provides a mock function with given fields:

type SectorsRepo

type SectorsRepo struct {
	mock.Mock
}

SectorsRepo is an autogenerated mock type for the SectorsRepo type

func (*SectorsRepo) BulkWrite

func (_m *SectorsRepo) BulkWrite(sectors []*bsontypes.SectorInfo) error

BulkWrite provides a mock function with given fields: sectors

func (*SectorsRepo) BulkWriteInfo

func (_m *SectorsRepo) BulkWriteInfo(sectors []*bsontypes.SectorInfo) error

BulkWriteInfo provides a mock function with given fields: sectors

func (*SectorsRepo) CreateIndexes

func (_m *SectorsRepo) CreateIndexes() error

CreateIndexes provides a mock function with given fields:

func (*SectorsRepo) GetSector

func (_m *SectorsRepo) GetSector(sectorID uint64) (bsontypes.SectorInfo, error)

GetSector provides a mock function with given fields: sectorID

func (*SectorsRepo) SectorWithDeal

func (_m *SectorsRepo) SectorWithDeal(dealID uint64) (*bsontypes.SectorInfo, error)

SectorWithDeal provides a mock function with given fields: dealID

func (*SectorsRepo) SetFaultSectors

func (_m *SectorsRepo) SetFaultSectors(sectors []uint64) error

SetFaultSectors provides a mock function with given fields: sectors

func (*SectorsRepo) SetRecoveriesSectors

func (_m *SectorsRepo) SetRecoveriesSectors(sectors []uint64) error

SetRecoveriesSectors provides a mock function with given fields: sectors

Jump to

Keyboard shortcuts

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