Documentation ¶
Index ¶
- func BeValidationError(expectedErrorType string, messageMatcher types.GomegaMatcher) types.GomegaMatcher
- func HasMessage(matcher types.GomegaMatcher) types.GomegaMatcher
- func HasObservedGeneration(matcher types.GomegaMatcher) types.GomegaMatcher
- func HasReason(matcher types.GomegaMatcher) types.GomegaMatcher
- func HasStatus(matcher types.GomegaMatcher) types.GomegaMatcher
- func HasType(matcher types.GomegaMatcher) types.GomegaMatcher
- func RepresentResourceQuantity(amount int64, scaleStr string) types.GomegaMatcher
- func WrapErrorAssignableToTypeOf(expected error) types.GomegaMatcher
- type JSONPathErrorMatcher
- type JSONPathMatcher
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 HasMessage ¶ added in v0.13.0
func HasMessage(matcher types.GomegaMatcher) types.GomegaMatcher
func HasObservedGeneration ¶ added in v0.12.0
func HasObservedGeneration(matcher types.GomegaMatcher) types.GomegaMatcher
func HasReason ¶ added in v0.12.0
func HasReason(matcher types.GomegaMatcher) types.GomegaMatcher
func HasStatus ¶ added in v0.12.0
func HasStatus(matcher types.GomegaMatcher) types.GomegaMatcher
func HasType ¶ added in v0.12.0
func HasType(matcher 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
Click to show internal directories.
Click to hide internal directories.