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 ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.