test

package
v0.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const GenesisPreseals = 2

Variables

View Source
var PresealGenesis = -1

Functions

func TestApis

func TestApis(t *testing.T, b APIBuilder)

TestApis is the entry point to API test suite

func TestDealFlow

func TestDealFlow(t *testing.T, b APIBuilder, blocktime time.Duration, carExport bool)

func TestDealMining added in v0.3.0

func TestDealMining(t *testing.T, b APIBuilder, blocktime time.Duration, carExport bool)

func TestDoubleDealFlow added in v0.3.0

func TestDoubleDealFlow(t *testing.T, b APIBuilder, blocktime time.Duration)

func TestPledgeSector added in v0.3.1

func TestPledgeSector(t *testing.T, b APIBuilder, blocktime time.Duration, nSectors int)

func TestWindowPost added in v0.3.1

func TestWindowPost(t *testing.T, b APIBuilder, blocktime time.Duration, nSectors int)

Types

type APIBuilder

type APIBuilder func(t *testing.T, nFull int, storage []StorageMiner) ([]TestNode, []TestStorageNode)

APIBuilder is a function which is invoked in test suite to provide test nodes and networks

storage array defines storage nodes, numbers in the array specify full node index the storage node 'belongs' to

type StorageMiner added in v0.3.0

type StorageMiner struct {
	Full    int
	Preseal int
}

type TestNode

type TestNode struct {
	api.FullNode
}

type TestStorageNode

type TestStorageNode struct {
	api.StorageMiner

	MineOne func(context.Context, func(bool)) error
}

Jump to

Keyboard shortcuts

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