matchers

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSnetAddrWithIA

func IsSnetAddrWithIA(ia addr.IA) gomock.Matcher

IsSnetAddrWithIA returns a matcher for a snet.Addr with the given IA.

Types

type AckMsg

type AckMsg struct {
	Ack ack.Ack
}

AckMsg matches ack messages.

func (*AckMsg) Matches

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

Matches returns whether the matcher matches x.

func (*AckMsg) String

func (m *AckMsg) String() string

type QueryHPCfgIDs

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

QueryHPCfgIDs is a matcher for HPCfgIDs.

func EqHPCfgIDs

func EqHPCfgIDs(ids []*query.HPCfgID) *QueryHPCfgIDs

EqHPCfgIDs returns a matcher for the given slice of HPCfgIDs.

func (*QueryHPCfgIDs) Matches

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

Matches returns whether x matches the defined HPCfgIDs ignoring the order of the slice elements.

func (*QueryHPCfgIDs) String

func (m *QueryHPCfgIDs) String() string

type QueryParams

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

QueryParams is a matcher for query parameters.

func EqParams

func EqParams(query *query.Params) *QueryParams

EqParams returns a matcher for the given query parameters.

func (*QueryParams) Matches

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

Matches returns whether x matches the defined query parameter ignoring the order of the slices.

func (*QueryParams) String

func (m *QueryParams) String() string

type SignedRevs

type SignedRevs struct {
	Verifier  path_mgmt.Verifier
	MatchRevs []path_mgmt.RevInfo
}

SignedRevs matches signed revocations against revinfos and checks if they are verifiable.

func (*SignedRevs) Matches

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

Matches returns whether the matcher matches x.

func (*SignedRevs) String

func (m *SignedRevs) String() string

Jump to

Keyboard shortcuts

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