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

Function TestParseHostUnixDefault

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

Source from the content-addressed store, hash-verified

162}
163
164func TestParseHostUnixDefault(t *testing.T) {
165 proto, addr, err := parseHost("")
166 assert.NoError(t, err)
167 assert.Equal(t, "unix", proto, "failed to parse ''")
168 assert.Equal(t, "/var/run/docker.sock", addr, "failed to parse ''")
169}
170
171func TestParseHostUnixDefaultNoPath(t *testing.T) {
172 proto, addr, err := parseHost("unix://")

Callers

nothing calls this directly

Calls 1

parseHostFunction · 0.85

Tested by

no test coverage detected