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

Function TestImageAttach

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

Source from the content-addressed store, hash-verified

71}
72
73func TestImageAttach(t *testing.T) {
74 a := testNewImage(t, "a", kube.ObjectMeta{}, "", testRandomObjects(30))
75 b := testNewImage(t, "b", kube.ObjectMeta{}, "", testRandomObjects(30))
76
77 err := a.Attach(b)
78 assert.Error(t, err, "Nothing can attach to images")
79}
80
81func TestImageType(t *testing.T) {
82 image := newDockerImage(t, "ghost:latest")

Callers

nothing calls this directly

Calls 3

testNewImageFunction · 0.85
testRandomObjectsFunction · 0.70
AttachMethod · 0.65

Tested by

no test coverage detected