median_test

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var (
	DataSource = staticDataSource{
		staticDataSourceConfig{
			ReportContext: reportContext,
			Value:         value,
		},
	}

	JuelsPerFeeCoinDataSource = staticDataSource{
		staticDataSourceConfig{
			ReportContext: reportContext,
			Value:         juelsPerFeeCoin,
		},
	}

	GasPriceSubunitsDataSource = staticDataSource{
		staticDataSourceConfig{
			ReportContext: reportContext,
			Value:         gasPriceSubunits,
		},
	}
)
View Source
var MedianContractID = "0x42"

Functions

func MedianProvider

func MedianProvider(lggr logger.Logger) staticMedianProvider

func NewMedianFactoryServer added in v0.5.0

func NewMedianFactoryServer(lggr logger.Logger) staticMedianFactoryServer

func PluginMedian

func PluginMedian(t *testing.T, p core.PluginMedian)

func ReportingPluginFactory

func ReportingPluginFactory(t *testing.T, factory types.ReportingPluginFactory)

Types

type CompareError

type CompareError struct {
	Got      *big.Int
	Expected *big.Int
}

func (*CompareError) Error

func (e *CompareError) Error() string

func (*CompareError) GotZero

func (e *CompareError) GotZero() bool

type PluginMedianTest

type PluginMedianTest struct {
	types.MedianProvider
}

func (PluginMedianTest) TestPluginMedian

func (m PluginMedianTest) TestPluginMedian(t *testing.T, p core.PluginMedian)

type ZeroDataSource

type ZeroDataSource struct {
}

Only to be used for testing

func (*ZeroDataSource) Observe

Jump to

Keyboard shortcuts

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