MCPcopy
hub / github.com/google/go-containerregistry / randomImage

Function randomImage

pkg/v1/remote/image_test.go:80–86  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

78}
79
80func randomImage(t *testing.T) v1.Image {
81 rnd, err := random.Image(1024, 1)
82 if err != nil {
83 t.Fatalf("random.Image() = %v", err)
84 }
85 return rnd
86}
87
88func newReference(host, repo, ref string) (name.Reference, error) {
89 tag, err := name.NewTag(fmt.Sprintf("%s/%s:%s", host, repo, ref), name.WeakValidation)

Callers 8

TestRawManifestDigestsFunction · 0.85
TestAcceptHeadersFunction · 0.85
TestImageFunction · 0.85
TestPullingForeignLayerFunction · 0.85
TestDataFunction · 0.85

Calls 1

ImageFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…