(t *testing.T)
| 7 | ) |
| 8 | |
| 9 | func TestParseRemotePath_PlainHostPath(t *testing.T) { |
| 10 | host, path, ok := parseRemotePath("192.168.1.1:/tmp/file.txt") |
| 11 | assert.True(t, ok) |
| 12 | assert.Equal(t, "192.168.1.1", host) |
| 13 | assert.Equal(t, "/tmp/file.txt", path) |
| 14 | } |
| 15 | |
| 16 | func TestParseRemotePath_PlainHostPathWithPort(t *testing.T) { |
| 17 | host, path, ok := parseRemotePath("example.com:22:/tmp/file.txt") |
nothing calls this directly
no test coverage detected