(t *testing.T)
| 155 | } |
| 156 | |
| 157 | func 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 | |
| 164 | func TestParseHostUnixDefault(t *testing.T) { |
| 165 | proto, addr, err := parseHost("") |
nothing calls this directly
no test coverage detected