testutils

package
v0.182.36 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DaiSymbol = "DAI"
View Source
const EthSymbol = "ETH"
View Source
const SntSymbol = "SNT"

Variables

This section is empty.

Functions

func Filter added in v0.168.1

func Filter[T any](ss []T, test func(T) bool) (ret []T)

func NewAddressSliceMatcher added in v0.180.31

func NewAddressSliceMatcher(expected []common.Address) gomock.Matcher

func NewUint64SliceMatcher added in v0.180.31

func NewUint64SliceMatcher(expected []uint64) gomock.Matcher

func SliceContains added in v0.159.2

func SliceContains[T comparable](slice []T, value T) bool

func StructExistsInSlice

func StructExistsInSlice[T any](target T, slice []T) bool

Types

type AddressSliceMatcher added in v0.180.31

type AddressSliceMatcher struct {
	// contains filtered or unexported fields
}

AddressSliceMatcher is a custom matcher for comparing common.Address slices regardless of order.

func (*AddressSliceMatcher) Matches added in v0.180.31

func (m *AddressSliceMatcher) Matches(x interface{}) bool

func (*AddressSliceMatcher) String added in v0.180.31

func (m *AddressSliceMatcher) String() string

type Uint64SliceMatcher added in v0.180.31

type Uint64SliceMatcher struct {
	// contains filtered or unexported fields
}

Uint64SliceMatcher is a custom matcher for comparing uint64 slices regardless of order.

func (*Uint64SliceMatcher) Matches added in v0.180.31

func (m *Uint64SliceMatcher) Matches(x interface{}) bool

func (*Uint64SliceMatcher) String added in v0.180.31

func (m *Uint64SliceMatcher) String() string

Jump to

Keyboard shortcuts

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