matchers

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 11 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 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