median_test

package
v0.2.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: 21 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 (
	MedianFactoryServer = staticMedianFactoryServer{
						// contains filtered or unexported fields
	}

	MedianProvider = staticMedianProvider{
					// contains filtered or unexported fields
	}

	MedianContractID = "0x42"
)

Functions

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