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

Function TestFormatRemotePath_LongIPv6

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

Source from the content-addressed store, hash-verified

140}
141
142func TestFormatRemotePath_LongIPv6(t *testing.T) {
143 result := formatRemotePath("2001:0db8:85a3::8a2e:0370:7334", "/data")
144 assert.Equal(t, "[2001:0db8:85a3::8a2e:0370:7334]:/data", result)
145}
146
147func TestFormatRemotePath_DomainName(t *testing.T) {
148 result := formatRemotePath("example.com", "/remote/path")

Callers

nothing calls this directly

Calls 1

formatRemotePathFunction · 0.85

Tested by

no test coverage detected