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.
Click to show internal directories.
Click to hide internal directories.