matchers

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSnetSVCAddrWithIA added in v0.5.0

func IsSnetSVCAddrWithIA(ia addr.IA) gomock.Matcher

IsSnetSVCAddrWithIA returns a matcher for a snet.SVCAddr 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