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

Function TestParseRemotePath_IPv6Long

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

Source from the content-addressed store, hash-verified

43}
44
45func 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
52func TestParseRemotePath_IPv6NoColonAfterBracket(t *testing.T) {
53 // [host] with no colon after bracket -- rest is empty, host returned but ok=false

Callers

nothing calls this directly

Calls 1

parseRemotePathFunction · 0.85

Tested by

no test coverage detected