tests

package
v0.0.0-...-571c95a Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package test provides utilities specifically for testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig(t *testing.T) *config.Config

GetConfig returns the example config populate with the infura api key

func NewSimulatedBlockchain

func NewSimulatedBlockchain(ctx context.Context, t *testing.T) (
	common.Address,
	*testenv.Testenv,
)

NewSimulatedBlockchain creates a new simulated blockchain, returns a transactor, and a ready jobs controller

func NewTestDB

func NewTestDB(t *testing.T) *database.Database

NewTestDB returns a new test database

Types

This section is empty.

Jump to

Keyboard shortcuts

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