(t *testing.T)
| 147 | } |
| 148 | |
| 149 | func TestContainerInvalidImage(t *testing.T) { |
| 150 | imageName := "*T*H*I*S* IS ILLEGAL" |
| 151 | kubeContainer := testNewKubeContainer("invalid-image", imageName) |
| 152 | _, err := NewContainer(kubeContainer, kube.ObjectMeta{}, "invalidimage") |
| 153 | assert.Error(t, err, "image was invalid") |
| 154 | } |
| 155 | |
| 156 | func testNewKubeContainer(name, imageName string) kube.Container { |
| 157 | return kube.Container{ |
nothing calls this directly
no test coverage detected