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