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

Function TestRCNil

pkg/entity/replicationcontroller_test.go:13–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func TestRCNil(t *testing.T) {
14 _, err := NewReplicationController(nil, kube.ObjectMeta{}, "nilRC")
15 assert.Error(t, err, "RC cannot be created from ni")
16}
17
18func TestRCInvalid(t *testing.T) {
19 kubeRC := new(kube.ReplicationController)

Callers

nothing calls this directly

Calls 1

NewReplicationControllerFunction · 0.85

Tested by

no test coverage detected