Documentation ¶
Index ¶
- Variables
- func MercuryPluginFactory(t *testing.T, factory types.MercuryPluginFactory)
- func PluginMercury(t *testing.T, p types.PluginMercury)
- type ErrExpected
- type MercuryChainReaderEvaluator
- type MercuryProviderTester
- type OnchainConfigCodecEvaluator
- type PluginMercuryTest
- type ServerFetcherEvaluator
- type StaticServerFetcherValues
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RelayArgs = types.RelayArgs{ ExternalJobID: uuid.MustParse("f1928153-d0b4-474b-9fd7-fd0985d0e7ca"), JobID: 42, ContractID: "mercury-testcontract", New: true, RelayConfig: []byte{1: 4, 36: 101}, ProviderType: string(types.Mercury), } PluginArgs = types.PluginArgs{ TransmitterID: "mercury-testtransmitter", PluginConfig: []byte{133: 79}, } )
View Source
var ChainReader = staticMercuryChainReader{ // contains filtered or unexported fields }
View Source
var FactoryServer = staticMercuryServer{ // contains filtered or unexported fields }
View Source
var MercuryProvider = staticMercuryProvider{ // contains filtered or unexported fields }
View Source
var OCR3Plugin = staticMercuryPlugin{ // contains filtered or unexported fields }
MercuryPlugin is a test helper for testing ocr3types.MercuryPlugin implementations. the name is adopted because ocr3 has a special mercury plugin type
View Source
var OnchainConfigCodec = staticOnchainConfigCodec{ // contains filtered or unexported fields }
OnchainConfigCodec is a static implementation of OnchainConfigCodec for testing
View Source
var ServerFetcher = staticServerFetcher{}
View Source
var StaticOnChainConfigCodecFixtures = onChainConfigCodecParameters{ Encoded: []byte("on chain config to be encoded"), Decoded: mercury_types.OnchainConfig{ Min: big.NewInt(1), Max: big.NewInt(100), }, }
View Source
var StaticServerFetcherFixtures = StaticServerFetcherValues{ InitialMaxFinalizedBlockNumber: 10, LatestPrice: big.NewInt(100), LatestTimestamp: 7, }
Functions ¶
func MercuryPluginFactory ¶
func MercuryPluginFactory(t *testing.T, factory types.MercuryPluginFactory)
func PluginMercury ¶
func PluginMercury(t *testing.T, p types.PluginMercury)
Types ¶
type ErrExpected ¶
type ErrExpected struct {
Expected, Got interface{}
}
func (*ErrExpected) Error ¶
func (e *ErrExpected) Error() string
type MercuryChainReaderEvaluator ¶
type MercuryChainReaderEvaluator interface { mercury_types.ChainReader testtypes.Evaluator[mercury_types.ChainReader] }
type MercuryProviderTester ¶
type MercuryProviderTester interface { types.MercuryProvider AssertEqual(ctx context.Context, t *testing.T, other types.MercuryProvider) }
type OnchainConfigCodecEvaluator ¶
type OnchainConfigCodecEvaluator interface { mercury_types.OnchainConfigCodec testtypes.Evaluator[mercury_types.OnchainConfigCodec] }
type PluginMercuryTest ¶
type PluginMercuryTest struct {
types.MercuryProvider
}
func (PluginMercuryTest) TestPluginMercury ¶
func (m PluginMercuryTest) TestPluginMercury(t *testing.T, p types.PluginMercury)
type ServerFetcherEvaluator ¶
type ServerFetcherEvaluator interface { mercury_types.ServerFetcher testtypes.Evaluator[mercury_types.ServerFetcher] }
Click to show internal directories.
Click to hide internal directories.