Documentation ¶
Index ¶
- func FullTestDBEmpty(t *testing.T, name string) (*configtest.TestGeneralConfig, *sqlx.DB)
- func FullTestDBEmptyV2(t *testing.T, name string, ...) (config.GeneralConfig, *sqlx.DB)
- func FullTestDBNoFixturesV2(t *testing.T, name string, ...) (config.GeneralConfig, *sqlx.DB)
- func FullTestDBV2(t *testing.T, name string, ...) (config.GeneralConfig, *sqlx.DB)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FullTestDBEmpty ¶ added in v1.4.0
func FullTestDBEmpty(t *testing.T, name string) (*configtest.TestGeneralConfig, *sqlx.DB)
FullTestDBEmpty creates an empty DB (without migrations). Deprecated: https://app.shortcut.com/chainlinklabs/story/33622/remove-legacy-config
func FullTestDBEmptyV2 ¶ added in v1.10.0
func FullTestDBEmptyV2(t *testing.T, name string, overrideFn func(c *chainlink.Config, s *chainlink.Secrets)) (config.GeneralConfig, *sqlx.DB)
FullTestDBEmptyV2 creates an empty DB (without migrations).
func FullTestDBNoFixturesV2 ¶ added in v1.10.0
func FullTestDBNoFixturesV2(t *testing.T, name string, overrideFn func(c *chainlink.Config, s *chainlink.Secrets)) (config.GeneralConfig, *sqlx.DB)
FullTestDBNoFixturesV2 is the same as FullTestDB, but it does not load fixtures.
func FullTestDBV2 ¶ added in v1.10.0
func FullTestDBV2(t *testing.T, name string, overrideFn func(c *chainlink.Config, s *chainlink.Secrets)) (config.GeneralConfig, *sqlx.DB)
FullTestDBV2 creates a pristine DB which runs in a separate database than the normal unit tests, so you can do things like use other Postgres connection types with it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.