median_test

package
v0.3.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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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