chainreadertest

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

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