chaincomponentstest

package
v0.2.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: 17 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL