objmatcher

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: BSD-3-Clause Imports: 5 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EqualsMatcher

type EqualsMatcher struct {
	Want interface{}
}

func (*EqualsMatcher) Matches

func (m *EqualsMatcher) Matches(in interface{}) error

func (*EqualsMatcher) String

func (m *EqualsMatcher) String() string

type MapMatcher

type MapMatcher map[string]Matcher

func (MapMatcher) Matches

func (m MapMatcher) Matches(in interface{}) error

type Matcher

type Matcher interface {
	Matches(in interface{}) error
}

func NewAnyMatcher

func NewAnyMatcher() Matcher

func NewEqualsMatcher

func NewEqualsMatcher(want interface{}) Matcher

func NewRegExpMatcher

func NewRegExpMatcher(want string) Matcher

type RegExpMatcher

type RegExpMatcher struct {
	WantRegexp string
}

func (*RegExpMatcher) Matches

func (m *RegExpMatcher) Matches(in interface{}) error

func (RegExpMatcher) String

func (m RegExpMatcher) String() string

type SliceMatcher

type SliceMatcher []Matcher

func (SliceMatcher) Matches

func (s SliceMatcher) Matches(in interface{}) error

Jump to

Keyboard shortcuts

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