test

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigTOML = `[Foo]
Bar = "Baz"
`

Variables

View Source
var (
	PluginArgs = types.PluginArgs{
		TransmitterID: "testtransmitter",
		PluginConfig:  []byte{100: 88},
	}
	RelayArgs = types.RelayArgs{
		ExternalJobID: uuid.MustParse("1051429b-aa66-11ed-b0d2-5cff35dfbe67"),
		JobID:         123,
		ContractID:    "testcontract",
		New:           true,
		RelayConfig:   []byte{42: 11},
		ProviderType:  string(types.Median),
	}
)

Functions

func NewRelayerTester

func NewRelayerTester(staticChecks bool) testtypes.RelayerTester

func Run

func Run(t *testing.T, relayer looptypes.Relayer)

func RunFuzzPluginRelayer

func RunFuzzPluginRelayer(f *testing.F, relayerFunc func(*testing.T) looptypes.PluginRelayer)

func RunFuzzProvider

func RunFuzzProvider[K any](f *testing.F, providerFunc func(*testing.T) FuzzableProvider[K])

func RunFuzzRelayer

func RunFuzzRelayer(f *testing.F, relayerFunc func(*testing.T) looptypes.Relayer)

func RunPlugin

func RunPlugin(t *testing.T, p looptypes.PluginRelayer)

Types

type FuzzableProvider

type FuzzableProvider[K any] func(context.Context, types.RelayArgs, types.PluginArgs) (K, error)

Jump to

Keyboard shortcuts

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