(t *testing.T)
| 88 | } |
| 89 | |
| 90 | func TestProxyTransport_NilWhenSocketMissing(t *testing.T) { |
| 91 | // no httpproxy.sock created |
| 92 | dir := t.TempDir() |
| 93 | cliSock := filepath.Join(dir, "docker-cli.sock") |
| 94 | mustTouch(t, cliSock) |
| 95 | |
| 96 | assert.Assert(t, ProxyTransport("unix://"+cliSock) == nil, |
| 97 | "must return nil when DD endpoint is set but proxy socket is missing, not a transport that would dial a dead socket") |
| 98 | } |
| 99 | |
| 100 | func TestProxyTransport_RoutesThroughDockerDesktop(t *testing.T) { |
| 101 | if runtime.GOOS == "windows" { |
nothing calls this directly
no test coverage detected