Versions in this module Expand all Collapse all v0 v0.6.3 May 17, 2024 Changes in this version + func RunEqualTests(t *testing.T, tests map[string]ConfigEqualTest) + func RunPrecompileTests(t *testing.T, module modules.Module, ...) + func RunPredicateBenchmarks(b *testing.B, predicateTests map[string]PredicateTest) + func RunPredicateTests(t *testing.T, predicateTests map[string]PredicateTest) + func RunVerifyTests(t *testing.T, tests map[string]ConfigVerifyTest) + type ConfigEqualTest struct + Config precompileconfig.Config + Expected bool + Other precompileconfig.Config + type ConfigVerifyTest struct + ChainConfig precompileconfig.ChainConfig + Config precompileconfig.Config + ExpectedError string + type PrecompileRunparams struct + AccessibleState contract.AccessibleState + Caller common.Address + ContractAddress common.Address + Input []byte + ReadOnly bool + SuppliedGas uint64 + type PrecompileTest struct + AfterHook func(t testing.TB, state contract.StateDB) + BeforeHook func(t testing.TB, state contract.StateDB) + Caller common.Address + ChainConfigFn func(*gomock.Controller) precompileconfig.ChainConfig + Config precompileconfig.Config + ExpectedErr string + ExpectedRes []byte + Input []byte + InputFn func(t testing.TB) []byte + ReadOnly bool + SetupBlockContext func(*contract.MockBlockContext) + SuppliedGas uint64 + func (test PrecompileTest) Bench(b *testing.B, module modules.Module, state contract.StateDB) + func (test PrecompileTest) Run(t *testing.T, module modules.Module, state contract.StateDB) + type PredicateTest struct + Config precompileconfig.Config + ExpectedErr error + Gas uint64 + GasErr error + PredicateBytes []byte + PredicateContext *precompileconfig.PredicateContext + func (test PredicateTest) Run(t testing.TB) + func (test PredicateTest) RunBenchmark(b *testing.B) v0.6.3-rc.1 May 19, 2024