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

Function TestImageType

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

Source from the content-addressed store, hash-verified

79}
80
81func TestImageType(t *testing.T) {
82 image := newDockerImage(t, "ghost:latest")
83
84 entity, err := NewImage(image, kube.ObjectMeta{}, "")
85 if err != nil {
86 t.Fatalf("Could not create Image entity: %v", err)
87 }
88
89 assert.Equal(t, EntityImage, entity.Type(), "incorrect type")
90}
91
92func TestImageKube(t *testing.T) {
93 imageName := "redis:latest"

Callers

nothing calls this directly

Calls 4

newDockerImageFunction · 0.85
NewImageFunction · 0.85
TypeMethod · 0.65
EqualMethod · 0.45

Tested by

no test coverage detected