MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / expectResourceExists

Function expectResourceExists

internal/controller/suite_test.go:462–469  ·  view source on GitHub ↗
(c client.Client, name, namespace string, resource client.Object)

Source from the content-addressed store, hash-verified

460}
461
462func expectResourceExists(c client.Client, name, namespace string, resource client.Object) {
463 err := c.Get(
464 context.Background(),
465 types.NamespacedName{Name: name, Namespace: namespace},
466 resource,
467 )
468 Expect(err).ToNot(HaveOccurred())
469}
470
471func expectResourceDoesntExist(c client.Client, name, namespace string, resource client.Object) {
472 err := c.Get(

Callers 2

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected