MCPcopy Create free account
hub / github.com/nginx-proxy/docker-gen / TestParseHostUnix

Function TestParseHostUnix

internal/dockerclient/docker_cli_test.go:157–162  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

155}
156
157func TestParseHostUnix(t *testing.T) {
158 proto, addr, err := parseHost("unix:///var/run/docker.sock")
159 assert.NoError(t, err)
160 assert.Equal(t, "unix", proto, "failed to parse unix:///var/run/docker.sock")
161 assert.Equal(t, "/var/run/docker.sock", addr, "failed to parse unix:///var/run/docker.sock")
162}
163
164func TestParseHostUnixDefault(t *testing.T) {
165 proto, addr, err := parseHost("")

Callers

nothing calls this directly

Calls 1

parseHostFunction · 0.85

Tested by

no test coverage detected