(t *testing.T)
| 162 | } |
| 163 | |
| 164 | func 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 | |
| 171 | func TestParseHostUnixDefaultNoPath(t *testing.T) { |
| 172 | proto, addr, err := parseHost("unix://") |
nothing calls this directly
no test coverage detected