MCPcopy Create free account
hub / github.com/Driver-C/tryssh / TestParseRemotePath_IPv6

Function TestParseRemotePath_IPv6

pkg/control/path_test.go:31–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

29}
30
31func 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
38func TestParseRemotePath_IPv6Full(t *testing.T) {
39 host, path, ok := parseRemotePath("[fe80::1%eth0]:/home/user/data")

Callers

nothing calls this directly

Calls 1

parseRemotePathFunction · 0.85

Tested by

no test coverage detected