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

Function TestDockerClientFromNilSystemContext

docker/daemon/client_test.go:14–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12)
13
14func TestDockerClientFromNilSystemContext(t *testing.T) {
15 client, err := newDockerClient(nil)
16
17 assert.Nil(t, err, "There should be no error creating the Docker client")
18 assert.NotNil(t, client, "A Docker client reference should have been returned")
19
20 assert.Equal(t, dockerclient.DefaultDockerHost, client.DaemonHost(), "The default docker host should have been used")
21
22 assert.NoError(t, client.Close())
23}
24
25func TestDockerClientFromCertContext(t *testing.T) {
26 testDir := testDir(t)

Callers

nothing calls this directly

Calls 2

newDockerClientFunction · 0.70
CloseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…