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

Function TestFormatRemotePath_IPv6

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

Source from the content-addressed store, hash-verified

130}
131
132func TestFormatRemotePath_IPv6(t *testing.T) {
133 result := formatRemotePath("::1", "/tmp/file.txt")
134 assert.Equal(t, "[::1]:/tmp/file.txt", result)
135}
136
137func TestFormatRemotePath_IPv6Full(t *testing.T) {
138 result := formatRemotePath("fe80::1%eth0", "/home/user/data")

Callers

nothing calls this directly

Calls 1

formatRemotePathFunction · 0.85

Tested by

no test coverage detected