Documentation ¶
Index ¶
- Variables
- func TestAllConfigs(t *testing.T, fn TestFn)
- func TestAllEnvs(t *testing.T, fn TestFn)
- func WithBlockchainNetwork(blockchain common.Blockchain, network common.Network) fx.Option
- func WithBlockchainNetworkSidechain(blockchain common.Blockchain, network common.Network, sidechain api.SideChain) fx.Option
- func WithConfig(cfg *config.Config) fx.Option
- func WithFunctional() fx.Option
- func WithIntegration() fx.Option
- type TestApp
- type TestConfig
- type TestFn
Constants ¶
This section is empty.
Variables ¶
View Source
var AWSAccountsToTest = []config.AWSAccount{ "", config.AWSAccountDevelopment, config.AWSAccountProduction, }
View Source
var EnvsToTest = []config.Env{ config.EnvLocal, config.EnvDevelopment, config.EnvProduction, }
View Source
var ( TestConfigs = []TestConfig{ { Namespace: "chainstorage", ConfigNames: []string{ "aptos-mainnet", "arbitrum-mainnet", "avacchain-mainnet", "base-goerli", "base-mainnet", "bitcoin-mainnet", "bsc-mainnet", "dogecoin-mainnet", "ethereum-goerli", "ethereum-holesky", "ethereum-mainnet", "fantom-mainnet", "optimism-mainnet", "polygon-mainnet", "polygon-testnet", "solana-mainnet", }, }, } )
Functions ¶
func TestAllConfigs ¶
func TestAllEnvs ¶
func WithBlockchainNetwork ¶
WithBlockchainNetwork loads the config according to the specified blockchain and network.
func WithBlockchainNetworkSidechain ¶
func WithBlockchainNetworkSidechain(blockchain common.Blockchain, network common.Network, sidechain api.SideChain) fx.Option
WithBlockchainNetworkSidechain loads the config according to the specified blockchain, network and sidechain.
func WithConfig ¶
WithConfig overrides the default config.
func WithFunctional ¶
WithFunctional runs the test only if $TEST_TYPE is functional.
func WithIntegration ¶
WithIntegration runs the test only if $TEST_TYPE is integration.
Types ¶
type TestConfig ¶
Click to show internal directories.
Click to hide internal directories.