Documentation ¶
Index ¶
- Variables
- func TestAllEncodings(t *testing.T, test func(chainreader.EncodingVersion) func(t *testing.T))
- func WrapChainReaderTesterForLoop(wrapped ChainReaderInterfaceTester[*testing.T], opts ...LoopTesterOpt) ChainReaderInterfaceTester[*testing.T]
- func WrapCodecTesterForLoop(wrapped interfacetests.CodecInterfaceTester) interfacetests.CodecInterfaceTester
- type LoopTesterOpt
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ChainReader is a static implementation of [types.ContractReader], [testtypes.Evaluator] and [types.PluginProvider // it is used for testing the [types.PluginProvider] interface ChainReader = staticChainReader{ // contains filtered or unexported fields } )
View Source
var Codec = staticCodec{ // contains filtered or unexported fields }
Functions ¶
func TestAllEncodings ¶
func TestAllEncodings(t *testing.T, test func(chainreader.EncodingVersion) func(t *testing.T))
func WrapChainReaderTesterForLoop ¶
func WrapChainReaderTesterForLoop(wrapped ChainReaderInterfaceTester[*testing.T], opts ...LoopTesterOpt) ChainReaderInterfaceTester[*testing.T]
WrapChainReaderTesterForLoop allows you to test a types.ContractReader implementation behind a LOOP server
func WrapCodecTesterForLoop ¶
func WrapCodecTesterForLoop(wrapped interfacetests.CodecInterfaceTester) interfacetests.CodecInterfaceTester
WrapCodecTesterForLoop allows you to test a types.Codec implementation behind a LOOP server
Types ¶
type LoopTesterOpt ¶
type LoopTesterOpt func(*contractReaderLoopTester)
func WithChainReaderLoopEncoding ¶
func WithChainReaderLoopEncoding(version chainreader.EncodingVersion) LoopTesterOpt
Click to show internal directories.
Click to hide internal directories.