MCPcopy Create free account
hub / github.com/conforma/cli / readAndVerifyLayer

Function readAndVerifyLayer

internal/utils/oci/client_test.go:103–110  ·  view source on GitHub ↗
(t *testing.T, l v1.Layer)

Source from the content-addressed store, hash-verified

101}
102
103func readAndVerifyLayer(t *testing.T, l v1.Layer) {
104 t.Helper()
105 r, err := l.Uncompressed()
106 require.NoError(t, err)
107 defer r.Close()
108 _, err = io.ReadAll(r)
109 require.NoError(t, err)
110}
111
112func TestImage(t *testing.T) {
113 const numLayers = 2

Callers 2

TestImageFunction · 0.85
TestLayerFunction · 0.85

Calls 3

HelperMethod · 0.80
CloseMethod · 0.65
UncompressedMethod · 0.45

Tested by

no test coverage detected