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

Function mustRawConfigFile

pkg/v1/remote/image_test.go:72–78  ·  view source on GitHub ↗
(t *testing.T, img v1.Image)

Source from the content-addressed store, hash-verified

70}
71
72func mustRawConfigFile(t *testing.T, img v1.Image) []byte {
73 c, err := img.RawConfigFile()
74 if err != nil {
75 t.Fatalf("RawConfigFile() = %v", err)
76 }
77 return c
78}
79
80func randomImage(t *testing.T) v1.Image {
81 rnd, err := random.Image(1024, 1)

Callers 7

TestImageFunction · 0.85
TestPullingManifestListFunction · 0.85
TestPullingForeignLayerFunction · 0.85
TestIndexFunction · 0.85

Calls 1

RawConfigFileMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…