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

Function TestImageNil

pkg/entity/image_test.go:61–65  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

59}
60
61func TestImageNil(t *testing.T) {
62 var image *image.Image
63 _, err := NewImage(image, kube.ObjectMeta{}, "")
64 assert.Error(t, err, "cannot be nil")
65}
66
67func TestImageInvalid(t *testing.T) {
68 image := new(image.Image)

Callers

nothing calls this directly

Calls 1

NewImageFunction · 0.85

Tested by

no test coverage detected