Versions in this module Expand all Collapse all v0 v0.13.7 Jul 13, 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 + ChainConfig 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)