MCPcopy Create free account
hub / github.com/docker/cli / build

Method build

cli/command/image/build_test.go:184–189  ·  view source on GitHub ↗
(_ context.Context, buildContext io.Reader, options client.ImageBuildOptions)

Source from the content-addressed store, hash-verified

182}
183
184func (f *fakeBuild) build(_ context.Context, buildContext io.Reader, options client.ImageBuildOptions) (client.ImageBuildResult, error) {
185 f.context = tar.NewReader(buildContext)
186 f.options = options
187 body := new(bytes.Buffer)
188 return client.ImageBuildResult{Body: io.NopCloser(body)}, nil
189}
190
191func (f *fakeBuild) headers(t *testing.T) []*tar.Header {
192 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected