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

Function TestContainerInvalidImage

pkg/entity/container_test.go:149–154  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

147}
148
149func 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
156func testNewKubeContainer(name, imageName string) kube.Container {
157 return kube.Container{

Callers

nothing calls this directly

Calls 2

testNewKubeContainerFunction · 0.85
NewContainerFunction · 0.85

Tested by

no test coverage detected