matchers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtEveryMatcher

type AtEveryMatcher struct {
	Matcher types.GomegaMatcher
	// contains filtered or unexported fields
}

func (*AtEveryMatcher) FailureMessage

func (m *AtEveryMatcher) FailureMessage(actual interface{}) (message string)

func (*AtEveryMatcher) Match

func (m *AtEveryMatcher) Match(actual interface{}) (success bool, err error)

func (*AtEveryMatcher) NegatedFailureMessage

func (m *AtEveryMatcher) NegatedFailureMessage(actual interface{}) (message string)

type AtIndexMatcher

type AtIndexMatcher struct {
	Index   int
	Matcher types.GomegaMatcher
	// contains filtered or unexported fields
}

func (*AtIndexMatcher) FailureMessage

func (m *AtIndexMatcher) FailureMessage(actual interface{}) (message string)

func (*AtIndexMatcher) Match

func (m *AtIndexMatcher) Match(actual interface{}) (success bool, err error)

func (*AtIndexMatcher) NegatedFailureMessage

func (m *AtIndexMatcher) NegatedFailureMessage(actual interface{}) (message string)

type AtKeyMatcher

type AtKeyMatcher struct {
	Key     interface{}
	Matcher types.GomegaMatcher
	// contains filtered or unexported fields
}

func (*AtKeyMatcher) FailureMessage

func (m *AtKeyMatcher) FailureMessage(actual interface{}) (message string)

func (*AtKeyMatcher) Match

func (m *AtKeyMatcher) Match(actual interface{}) (success bool, err error)

func (*AtKeyMatcher) NegatedFailureMessage

func (m *AtKeyMatcher) NegatedFailureMessage(actual interface{}) (message string)

type HaveHeaderMatcher

type HaveHeaderMatcher struct {
	Key   string
	Inner types.GomegaMatcher
	// contains filtered or unexported fields
}

func (*HaveHeaderMatcher) FailureMessage

func (matcher *HaveHeaderMatcher) FailureMessage(actual interface{}) (message string)

func (*HaveHeaderMatcher) Match

func (matcher *HaveHeaderMatcher) Match(actual interface{}) (bool, error)

func (*HaveHeaderMatcher) NegatedFailureMessage

func (matcher *HaveHeaderMatcher) NegatedFailureMessage(actual interface{}) (message string)

type HaveJsonBodyMatcher

type HaveJsonBodyMatcher struct {
	Inner types.GomegaMatcher
	// contains filtered or unexported fields
}

func (*HaveJsonBodyMatcher) FailureMessage

func (matcher *HaveJsonBodyMatcher) FailureMessage(actual interface{}) (message string)

func (*HaveJsonBodyMatcher) Match

func (matcher *HaveJsonBodyMatcher) Match(actual interface{}) (bool, error)

func (*HaveJsonBodyMatcher) NegatedFailureMessage

func (matcher *HaveJsonBodyMatcher) NegatedFailureMessage(actual interface{}) (message string)

type HaveResponseCodeMatcher

type HaveResponseCodeMatcher struct {
	CodeOrMatcher interface{}
	// contains filtered or unexported fields
}

func (*HaveResponseCodeMatcher) FailureMessage

func (matcher *HaveResponseCodeMatcher) FailureMessage(actual interface{}) (message string)

func (*HaveResponseCodeMatcher) Match

func (matcher *HaveResponseCodeMatcher) Match(actual interface{}) (bool, error)

func (*HaveResponseCodeMatcher) NegatedFailureMessage

func (matcher *HaveResponseCodeMatcher) NegatedFailureMessage(actual interface{}) (message string)

type MatchFieldMatcher

type MatchFieldMatcher struct {
	Name    string
	Matcher types.GomegaMatcher
}

func (*MatchFieldMatcher) FailureMessage

func (m *MatchFieldMatcher) FailureMessage(actual interface{}) (message string)

func (*MatchFieldMatcher) Match

func (m *MatchFieldMatcher) Match(actual interface{}) (success bool, err error)

func (*MatchFieldMatcher) NegatedFailureMessage

func (m *MatchFieldMatcher) NegatedFailureMessage(actual interface{}) (message string)

type MatchLenMatcher

type MatchLenMatcher struct {
	Matcher types.GomegaMatcher
}

func (*MatchLenMatcher) FailureMessage

func (matcher *MatchLenMatcher) FailureMessage(actual interface{}) (message string)

func (*MatchLenMatcher) Match

func (matcher *MatchLenMatcher) Match(actual interface{}) (bool, error)

func (*MatchLenMatcher) NegatedFailureMessage

func (matcher *MatchLenMatcher) NegatedFailureMessage(actual interface{}) (message string)

type MatchPtrFieldMatcher

type MatchPtrFieldMatcher struct {
	Name    string
	Matcher types.GomegaMatcher
}

func (*MatchPtrFieldMatcher) FailureMessage

func (m *MatchPtrFieldMatcher) FailureMessage(actual interface{}) (message string)

func (*MatchPtrFieldMatcher) Match

func (m *MatchPtrFieldMatcher) Match(actual interface{}) (success bool, err error)

func (*MatchPtrFieldMatcher) NegatedFailureMessage

func (m *MatchPtrFieldMatcher) NegatedFailureMessage(actual interface{}) (message string)

type NotErrorMatcher

type NotErrorMatcher struct {
}

func (*NotErrorMatcher) FailureMessage

func (m *NotErrorMatcher) FailureMessage(actual interface{}) (message string)

func (*NotErrorMatcher) Match

func (m *NotErrorMatcher) Match(actual interface{}) (success bool, err error)

func (*NotErrorMatcher) NegatedFailureMessage

func (m *NotErrorMatcher) NegatedFailureMessage(actual interface{}) (message string)

Jump to

Keyboard shortcuts

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