MCPcopy Index your code
hub / github.com/kubernetes/sample-controller / TestDoNothing

Function TestDoNothing

controller_test.go:264–278  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

262}
263
264func TestDoNothing(t *testing.T) {
265 f := newFixture(t)
266 foo := newFoo("test", ptr.To[int32](1))
267 _, ctx := ktesting.NewTestContext(t)
268
269 d := newDeployment(foo)
270
271 f.fooLister = append(f.fooLister, foo)
272 f.objects = append(f.objects, foo)
273 f.deploymentLister = append(f.deploymentLister, d)
274 f.kubeobjects = append(f.kubeobjects, d)
275
276 f.expectUpdateFooStatusAction(foo)
277 f.run(ctx, getRef(foo, t))
278}
279
280func TestUpdateDeployment(t *testing.T) {
281 f := newFixture(t)

Callers

nothing calls this directly

Calls 6

newFixtureFunction · 0.85
newFooFunction · 0.85
newDeploymentFunction · 0.85
getRefFunction · 0.85
runMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…