configtest

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPeerID = "12D3KooWPjceQrSwdWXPyLLeABRXmuqt69Rg3sBYbU1Nft9HyQ6X"

Variables

This section is empty.

Functions

func NewGeneralConfig

func NewGeneralConfig(t testing.TB, overrideFn func(*plugin.Config, *plugin.Secrets)) plugin.GeneralConfig

NewGeneralConfig returns a new plugin.GeneralConfig with overrides. The default test overrides are applied before overrideFn, and include one chain with evmclient.NullClientChainID.

func NewGeneralConfigSimulated

func NewGeneralConfigSimulated(t testing.TB, overrideFn func(*plugin.Config, *plugin.Secrets)) plugin.GeneralConfig

NewGeneralConfigSimulated returns a new plugin.GeneralConfig with overrides, including the simulated EVM chain. The default test overrides are applied before overrideFn. The simulated chain (testutils.SimulatedChainID) replaces the null chain (evmclient.NullClientChainID).

func NewTestGeneralConfig

func NewTestGeneralConfig(t testing.TB) plugin.GeneralConfig

NewTestGeneralConfig returns a new plugin.GeneralConfig with default test overrides and one chain with evmclient.NullClientChainID.

func WriteTOMLFile

func WriteTOMLFile(t *testing.T, contents any, fileName string) string

WriteTOMLFile is used in tests to output toml config types to a toml string. Secret values are redacted.

Types

This section is empty.

Jump to

Keyboard shortcuts

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