configtest

package
v2.11.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultPeerID = "12D3KooWPjceQrSwdWXPyLLeABRXmuqt69Rg3sBYbU1Nft9HyQ6X"

Variables

This section is empty.

Functions

func NewGeneralConfig added in v2.8.0

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

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

func NewGeneralConfigSimulated added in v2.8.0

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

NewGeneralConfigSimulated returns a new chainlink.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 added in v2.8.0

func NewTestGeneralConfig(t testing.TB) chainlink.GeneralConfig

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

func WriteTOMLFile added in v2.8.0

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