matchers

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package matchers provides custom Gomega matchers for testing defkit definitions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeConfigMap

func BeConfigMap() types.GomegaMatcher

BeConfigMap returns a matcher that checks if a Resource is a ConfigMap.

func BeDeployment

func BeDeployment() types.GomegaMatcher

BeDeployment returns a matcher that checks if a Resource is a Deployment.

func BeIngress

func BeIngress() types.GomegaMatcher

BeIngress returns a matcher that checks if a Resource is an Ingress.

func BeOptional

func BeOptional() types.GomegaMatcher

BeOptional returns a matcher that checks if a parameter is optional.

func BeRequired

func BeRequired() types.GomegaMatcher

BeRequired returns a matcher that checks if a parameter is required.

func BeResourceOfKind

func BeResourceOfKind(kind string) types.GomegaMatcher

BeResourceOfKind returns a matcher that checks if a Resource is of the specified kind.

func BeSecret

func BeSecret() types.GomegaMatcher

BeSecret returns a matcher that checks if a Resource is a Secret.

func BeService

func BeService() types.GomegaMatcher

BeService returns a matcher that checks if a Resource is a Service.

func HaveAPIVersion

func HaveAPIVersion(version string) types.GomegaMatcher

HaveAPIVersion returns a matcher that checks if a Resource has the specified API version.

func HaveDefaultValue

func HaveDefaultValue(expected any) types.GomegaMatcher

HaveDefaultValue returns a matcher that checks if a parameter has the expected default value.

func HaveDescription

func HaveDescription(expected string) types.GomegaMatcher

HaveDescription returns a matcher that checks if a parameter has the expected description.

func HaveOpCount

func HaveOpCount(count int) types.GomegaMatcher

HaveOpCount returns a matcher that checks if a Resource has the expected number of operations.

func HaveParamNamed

func HaveParamNamed(name string) types.GomegaMatcher

HaveParamNamed returns a matcher that checks if a ComponentDefinition has a parameter with the given name.

func HaveSetOp

func HaveSetOp(path string) types.GomegaMatcher

HaveSetOp returns a matcher that checks if a Resource has a Set operation at the given path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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