(t *testing.T)
| 14 | } |
| 15 | |
| 16 | func TestParseRemotePath_PlainHostPathWithPort(t *testing.T) { |
| 17 | host, path, ok := parseRemotePath("example.com:22:/tmp/file.txt") |
| 18 | // SplitN with 2 splits on the first colon only |
| 19 | assert.True(t, ok) |
| 20 | assert.Equal(t, "example.com", host) |
| 21 | assert.Equal(t, "22:/tmp/file.txt", path) |
| 22 | } |
| 23 | |
| 24 | func TestParseRemotePath_Alias(t *testing.T) { |
| 25 | host, path, ok := parseRemotePath("myserver:/remote/dir") |
nothing calls this directly
no test coverage detected