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

Function TestPodBadObjects

pkg/entity/pod_test.go:113–119  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

111}
112
113func TestPodBadObjects(t *testing.T) {
114 objects := []deploy.KubeObject{
115 nil, // illegal
116 }
117 _, err := NewPod(testNewKubePod("bad"), kube.ObjectMeta{}, "", objects...)
118 assert.Error(t, err, "bad objects")
119}
120
121func TestPodFromPodSpec(t *testing.T) {
122 spec := kube.PodSpec{

Callers

nothing calls this directly

Calls 2

NewPodFunction · 0.85
testNewKubePodFunction · 0.85

Tested by

no test coverage detected