matcher

package
v0.21.2 Latest Latest
Warning

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

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

Documentation

Overview

The matcher package provides domain-specific Gomega matchers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsConfigAuditReportOwnedBy

func IsConfigAuditReportOwnedBy(owner client.Object) types.GomegaMatcher

IsConfigAuditReportOwnedBy succeeds if a v1alpha1.ConfigAuditReport has a valid structure, and is owned by the specified client.Object.

Note: This matcher is not suitable for unit tests because it does not perform a strict validation of the actual v1alpha1.ConfigAuditReport.

func IsVulnerabilityReportForContainerOwnedBy

func IsVulnerabilityReportForContainerOwnedBy(containerName string, owner client.Object) types.GomegaMatcher

IsVulnerabilityReportForContainerOwnedBy succeeds if a v1alpha1.VulnerabilityReport has a valid structure, corresponds to the given container and is owned by the specified client.Object.

Note: This matcher is not suitable for unit tests because it does not perform a strict validation of the actual v1alpha1.VulnerabilityReport.

Types

This section is empty.

Jump to

Keyboard shortcuts

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