(t *testing.T)
| 85 | } |
| 86 | |
| 87 | func 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 | |
| 102 | func testDir(t *testing.T) string { |
| 103 | testDir, err := os.Getwd() |
nothing calls this directly
no test coverage detected
searching dependent graphs…