matchers

package
v0.0.0-...-690a1a7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HaveCondition

func HaveCondition[T ~string](conditionType T, conditionStatus metav1.ConditionStatus) types.GomegaMatcher

HaveCondition creates a new HaveConditionMatcher.

Types

type HaveConditionMatcher

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

HaveConditionMatcher checks for a specific condition and status in a Kubernetes object.

func (*HaveConditionMatcher) FailureMessage

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

FailureMessage is the message returned on matcher failure.

func (*HaveConditionMatcher) Match

func (matcher *HaveConditionMatcher) Match(actual interface{}) (success bool, err error)

Match checks if the actual object has the specified condition and status.

func (*HaveConditionMatcher) NegatedFailureMessage

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

NegatedFailureMessage is the message returned on negated matcher failure.

Jump to

Keyboard shortcuts

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