matchers

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EqualitiesDerivativeMatcher

type EqualitiesDerivativeMatcher struct {
	Equalities semantic.Equalities
	Expected   interface{}
}

EqualitiesDerivativeMatcher is a matcher that matches the Expected value using the given Equalities and semantic.Equalities.DeepDerivative.

func (*EqualitiesDerivativeMatcher) FailureMessage

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

func (*EqualitiesDerivativeMatcher) Match

func (m *EqualitiesDerivativeMatcher) Match(actual interface{}) (bool, error)

func (*EqualitiesDerivativeMatcher) NegatedFailureMessage

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

type EqualitiesEqualMatcher

type EqualitiesEqualMatcher struct {
	Equalities semantic.Equalities
	Expected   interface{}
}

EqualitiesEqualMatcher is a matcher that matches the Expected value using the given Equalities and semantic.Equalities.DeepEqual.

func (*EqualitiesEqualMatcher) FailureMessage

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

func (*EqualitiesEqualMatcher) Match

func (m *EqualitiesEqualMatcher) Match(actual interface{}) (bool, error)

func (*EqualitiesEqualMatcher) NegatedFailureMessage

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

type ErrorFuncMatcher

type ErrorFuncMatcher struct {
	Name string
	Func func(err error) bool
}

func (*ErrorFuncMatcher) FailureMessage

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

func (*ErrorFuncMatcher) Match

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

func (*ErrorFuncMatcher) NegatedFailureMessage

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

Jump to

Keyboard shortcuts

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