Documentation ¶
Index ¶
- Constants
- func Filter[T any](ss []T, test func(T) bool) (ret []T)
- func NewAddressSliceMatcher(expected []common.Address) gomock.Matcher
- func NewUint64SliceMatcher(expected []uint64) gomock.Matcher
- func SliceContains[T comparable](slice []T, value T) bool
- func StructExistsInSlice[T any](target T, slice []T) bool
- type AddressSliceMatcher
- type Uint64SliceMatcher
Constants ¶
View Source
const DaiSymbol = "DAI"
View Source
const EthSymbol = "ETH"
View Source
const SntSymbol = "SNT"
Variables ¶
This section is empty.
Functions ¶
func NewAddressSliceMatcher ¶ added in v0.180.31
func NewUint64SliceMatcher ¶ added in v0.180.31
func SliceContains ¶ added in v0.159.2
func SliceContains[T comparable](slice []T, value T) bool
func StructExistsInSlice ¶
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
Click to show internal directories.
Click to hide internal directories.