MCPcopy Create free account
hub / github.com/kubernetes/sample-controller / newFixture

Function newFixture

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

Source from the content-addressed store, hash-verified

63}
64
65func newFixture(t *testing.T) *fixture {
66 f := &fixture{}
67 f.t = t
68 f.objects = []runtime.Object{}
69 f.kubeobjects = []runtime.Object{}
70 return f
71}
72
73func newFoo(name string, replicas *int32) *samplecontroller.Foo {
74 return &samplecontroller.Foo{

Callers 4

TestCreatesDeploymentFunction · 0.85
TestDoNothingFunction · 0.85
TestUpdateDeploymentFunction · 0.85
TestNotControlledByUsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…