test_config

package
v1.0.2-mainnet.rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: AGPL-3.0 Imports: 7 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
View Source
var TestConfig *viper.Viper

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 NewTestDB

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

func NewTestNode

func NewTestNode() core.Node

Returns a new test node, with the same ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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