matchers

package
v0.0.0-...-fc29aca Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: UPL-1.0 Imports: 5 Imported by: 0

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

type HaveEnvVarMatcher struct {
	EnvVar coreV1.EnvVar
}

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)

Jump to

Keyboard shortcuts

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