matchers

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeValidationError added in v0.5.0

func BeValidationError(expectedErrorType string, messageMatcher types.GomegaMatcher) types.GomegaMatcher

func RepresentResourceQuantity added in v0.3.0

func RepresentResourceQuantity(amount int64, scaleStr string) types.GomegaMatcher

func WrapErrorAssignableToTypeOf

func WrapErrorAssignableToTypeOf(expected error) types.GomegaMatcher

Types

type JSONPathErrorMatcher added in v0.9.0

type JSONPathErrorMatcher struct {
	JSONPathMatcher
}

func MatchJSONPathError added in v0.9.0

func MatchJSONPathError(path string, expected any) *JSONPathErrorMatcher

func (JSONPathErrorMatcher) FailureMessage added in v0.9.0

func (m JSONPathErrorMatcher) FailureMessage(actual interface{}) string

func (*JSONPathErrorMatcher) Match added in v0.9.0

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

func (JSONPathErrorMatcher) NegatedFailureMessage added in v0.9.0

func (m JSONPathErrorMatcher) NegatedFailureMessage(actual interface{}) string

type JSONPathMatcher added in v0.7.1

type JSONPathMatcher struct {
	// contains filtered or unexported fields
}

func MatchJSONPath added in v0.7.1

func MatchJSONPath(path string, expected any) *JSONPathMatcher

func (JSONPathMatcher) FailureMessage added in v0.7.1

func (m JSONPathMatcher) FailureMessage(actual interface{}) string

func (*JSONPathMatcher) Match added in v0.7.1

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

func (JSONPathMatcher) NegatedFailureMessage added in v0.7.1

func (m JSONPathMatcher) NegatedFailureMessage(actual interface{}) string

Jump to

Keyboard shortcuts

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