test

package
v0.0.0-...-9dc0c09 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// var which set the app context
	GenesisFilePath      = "../../test/testdata/genesis_test.json"
	EmptyGenesisFilePath = "../../test/testdata/genesis_empty.json"
	BlocksFilePath       = "../../test/testdata/blocks_test.db"
	EmptyBlocksFilePath  = "../../test/testdata/blocks_empty.db"
	KeystoreDirPath      = "../../test/testdata/keystore/"

	// functions that are used to verify whether a test is valid or not
	StandardHttpValidationFunc = func(wCodeE int, wCodeA int, testName string, wBodyE string, wBodyA string, asserts *assert.Assertions) {
		asserts.Equal(wCodeE, wCodeA, "Response Status - "+testName)
		asserts.Equal(wBodyE, wBodyA, "Response Content - "+testName)
	}
	RegexpHttpValidationFunc = func(wCodeE int, wCodeA int, testName string, wBodyE string, wBodyA string, asserts *assert.Assertions) {
		asserts.Equal(wCodeE, wCodeA, "Response Status - "+testName)
		asserts.Regexp(wBodyE, wBodyA, "Response Content - "+testName)
	}
)

Functions

func InitTestContext

func InitTestContext()

Types

This section is empty.

Jump to

Keyboard shortcuts

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