Documentation
¶
Overview ¶
Package matchers provides custom Gomega matchers for testing defkit definitions.
Index ¶
- func BeConfigMap() types.GomegaMatcher
- func BeDeployment() types.GomegaMatcher
- func BeIngress() types.GomegaMatcher
- func BeOptional() types.GomegaMatcher
- func BeRequired() types.GomegaMatcher
- func BeResourceOfKind(kind string) types.GomegaMatcher
- func BeSecret() types.GomegaMatcher
- func BeService() types.GomegaMatcher
- func HaveAPIVersion(version string) types.GomegaMatcher
- func HaveDefaultValue(expected any) types.GomegaMatcher
- func HaveDescription(expected string) types.GomegaMatcher
- func HaveOpCount(count int) types.GomegaMatcher
- func HaveParamNamed(name string) types.GomegaMatcher
- func HaveSetOp(path string) types.GomegaMatcher
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.