MCPcopy Index your code
hub / github.com/docker/cli / headers

Method headers

cli/command/image/build_test.go:191–205  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

189}
190
191func (f *fakeBuild) headers(t *testing.T) []*tar.Header {
192 t.Helper()
193 var headers []*tar.Header
194 for {
195 hdr, err := f.context.Next()
196 switch err {
197 case io.EOF:
198 return headers
199 case nil:
200 headers = append(headers, hdr)
201 default:
202 assert.NilError(t, err)
203 }
204 }
205}
206
207func (f *fakeBuild) filenames(t *testing.T) []string {
208 t.Helper()

Callers 2

filenamesMethod · 0.95

Calls 1

NextMethod · 0.80

Tested by

no test coverage detected