chainreadertest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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