MCPcopy Index your code
hub / github.com/coder/envbox / DockerClient

Function DockerClient

cli/clitest/cli.go:35–42  ·  view source on GitHub ↗

nolint

(t *testing.T, ctx context.Context)

Source from the content-addressed store, hash-verified

33
34// nolint
35func DockerClient(t *testing.T, ctx context.Context) *dockerfake.MockClient {
36 t.Helper()
37
38 client, err := dockerutil.ExtractClient(ctx)
39 require.NoError(t, err)
40 //nolint we should panic if this isn't the case.
41 return client.(*dockerfake.MockClient)
42}
43
44// New returns an instantiated Command as well as a context populated with mocked
45// values for the command. All mock/fakes have been minimally configured to

Callers 1

TestDockerFunction · 0.92

Calls 1

ExtractClientFunction · 0.92

Tested by 1

TestDockerFunction · 0.74