MCPcopy
hub / github.com/redspread/spread / testNewRC

Function testNewRC

pkg/entity/replicationcontroller_test.go:363–369  ·  view source on GitHub ↗
(t *testing.T, name string, selector map[string]string, objects []deploy.KubeObject)

Source from the content-addressed store, hash-verified

361}
362
363func testNewRC(t *testing.T, name string, selector map[string]string, objects []deploy.KubeObject) *ReplicationController {
364 rcMeta := kube.ObjectMeta{Name: name}
365 kubeRC := testNewKubeRC(rcMeta, selector, nil)
366 rc, err := NewReplicationController(kubeRC, kube.ObjectMeta{}, "", objects...)
367 assert.NoError(t, err, "should be valid RC")
368 return rc
369}

Callers 3

TestRCAttachImageFunction · 0.85
TestRCAttachContainerFunction · 0.85
TestRCAttachPodFunction · 0.85

Calls 2

testNewKubeRCFunction · 0.85
NewReplicationControllerFunction · 0.85

Tested by

no test coverage detected