Documentation ¶
Overview ¶
matchers contains custom implementations of Gomega matchers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HaveEnvVar ¶
func HaveEnvVar(expected coreV1.EnvVar) types.GomegaMatcher
HaveEnvVar asserts that a []EnvVar contains a specified EnvVar.
func HaveEnvVarNamed ¶
func HaveEnvVarNamed(name string) types.GomegaMatcher
HaveEnvVar asserts that a []EnvVar does not contain a specified EnvVar.
Types ¶
type HaveEnvVarMatcher ¶
HaveEnvVarMatcher is a Gomega matcher that matches an EnvVar in an EnvVar slice
func (*HaveEnvVarMatcher) FailureMessage ¶
func (h *HaveEnvVarMatcher) FailureMessage(actual interface{}) (message string)
func (*HaveEnvVarMatcher) Match ¶
func (h *HaveEnvVarMatcher) Match(actual interface{}) (success bool, err error)
Match asserts that a value is an EnvVar slice containing the expected EnvVar.
func (*HaveEnvVarMatcher) NegatedFailureMessage ¶
func (h *HaveEnvVarMatcher) NegatedFailureMessage(actual interface{}) (message string)
type HaveNamedEnvVarMatcher ¶
type HaveNamedEnvVarMatcher struct {
Name string
}
HaveNamedEnvVarMatcher is a Gomega matcher that asserts that an EnvVar is not present in an EnvVar slice
func (*HaveNamedEnvVarMatcher) FailureMessage ¶
func (h *HaveNamedEnvVarMatcher) FailureMessage(actual interface{}) (message string)
func (*HaveNamedEnvVarMatcher) Match ¶
func (h *HaveNamedEnvVarMatcher) Match(actual interface{}) (success bool, err error)
Match asserts that a value is an EnvVar slice containing the expected EnvVar.
func (*HaveNamedEnvVarMatcher) NegatedFailureMessage ¶
func (h *HaveNamedEnvVarMatcher) NegatedFailureMessage(actual interface{}) (message string)
Click to show internal directories.
Click to hide internal directories.