(t *testing.T)
| 29 | } |
| 30 | |
| 31 | func TestParseRemotePath_IPv6(t *testing.T) { |
| 32 | host, path, ok := parseRemotePath("[::1]:/tmp/file.txt") |
| 33 | assert.True(t, ok) |
| 34 | assert.Equal(t, "::1", host) |
| 35 | assert.Equal(t, "/tmp/file.txt", path) |
| 36 | } |
| 37 | |
| 38 | func TestParseRemotePath_IPv6Full(t *testing.T) { |
| 39 | host, path, ok := parseRemotePath("[fe80::1%eth0]:/home/user/data") |
nothing calls this directly
no test coverage detected