test_config

package
v0.0.0-...-a326f38 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ABIFilePath string
View Source
var DBConfig config.Database
View Source
var TestClient config.Client

Functions

func CleanTestDB

func CleanTestDB(db *postgres.DB)

Cleans all tables in the DB. Note that this requires cascade constraints to be in place, so deletion can be run in any order.

func NewTestBlockchain

func NewTestBlockchain() (core.BlockChain, error)

func NewTestDB

func NewTestDB(node core.Node) *postgres.DB

func NewTestNode

func NewTestNode() core.Node

Returns a new test node, with the same ID

func SetTestConfig

func SetTestConfig()

Types

This section is empty.

Jump to

Keyboard shortcuts

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