(t *testing.T)
| 299 | } |
| 300 | |
| 301 | func TestNotControlledByUs(t *testing.T) { |
| 302 | f := newFixture(t) |
| 303 | foo := newFoo("test", ptr.To[int32](1)) |
| 304 | _, ctx := ktesting.NewTestContext(t) |
| 305 | |
| 306 | d := newDeployment(foo) |
| 307 | |
| 308 | d.ObjectMeta.OwnerReferences = []metav1.OwnerReference{} |
| 309 | |
| 310 | f.fooLister = append(f.fooLister, foo) |
| 311 | f.objects = append(f.objects, foo) |
| 312 | f.deploymentLister = append(f.deploymentLister, d) |
| 313 | f.kubeobjects = append(f.kubeobjects, d) |
| 314 | |
| 315 | f.runExpectError(ctx, getRef(foo, t)) |
| 316 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…