test

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: Apache-2.0, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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)

Types

type APIBuilder

type APIBuilder func(t *testing.T, nFull int, storage []int) ([]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 TestNode

type TestNode struct {
	api.FullNode
}

type TestStorageNode

type TestStorageNode struct {
	api.StorageMiner

	MineOne func(context.Context) error
}

Jump to

Keyboard shortcuts

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