MCPcopy Create free account
hub / github.com/containers/image / verifyGetBlobAtOutput

Function verifyGetBlobAtOutput

docker/docker_image_src_test.go:122–128  ·  view source on GitHub ↗
(t *testing.T, streams chan io.ReadCloser, errs chan error, expected []verifyGetBlobAtData)

Source from the content-addressed store, hash-verified

120}
121
122func verifyGetBlobAtOutput(t *testing.T, streams chan io.ReadCloser, errs chan error, expected []verifyGetBlobAtData) {
123 for _, c := range expected {
124 data, err := readNextStream(streams, errs)
125 assert.Equal(t, c.expectedData, data)
126 assert.Equal(t, c.expectedError, err)
127 }
128}
129
130func TestSplitHTTP200ResponseToPartial(t *testing.T) {
131 body := io.NopCloser(bytes.NewReader([]byte("123456789")))

Callers 2

TestHandle206ResponseFunction · 0.85

Calls 1

readNextStreamFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…