(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestParseRemotePath_IPv6Long(t *testing.T) { |
| 46 | host, path, ok := parseRemotePath("[2001:0db8:85a3:0000:0000:8a2e:0370:7334]:/data") |
| 47 | assert.True(t, ok) |
| 48 | assert.Equal(t, "2001:0db8:85a3:0000:0000:8a2e:0370:7334", host) |
| 49 | assert.Equal(t, "/data", path) |
| 50 | } |
| 51 | |
| 52 | func TestParseRemotePath_IPv6NoColonAfterBracket(t *testing.T) { |
| 53 | // [host] with no colon after bracket -- rest is empty, host returned but ok=false |
nothing calls this directly
no test coverage detected