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

Function TestSpecifyPlainHTTPViaHostScheme

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

Source from the content-addressed store, hash-verified

85}
86
87func TestSpecifyPlainHTTPViaHostScheme(t *testing.T) {
88 host := "http://127.0.0.1:2376"
89 ctx := &types.SystemContext{
90 DockerDaemonHost: host,
91 }
92
93 client, err := newDockerClient(ctx)
94
95 assert.Nil(t, err, "There should be no error creating the Docker client")
96 assert.NotNil(t, client, "A Docker client reference should have been returned")
97
98 assert.Equal(t, host, client.DaemonHost())
99 assert.NoError(t, client.Close())
100}
101
102func testDir(t *testing.T) string {
103 testDir, err := os.Getwd()

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…