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

Function TestFormatRemotePath_PlainHost

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

Source from the content-addressed store, hash-verified

125}
126
127func TestFormatRemotePath_PlainHost(t *testing.T) {
128 result := formatRemotePath("192.168.1.1", "/tmp/file.txt")
129 assert.Equal(t, "192.168.1.1:/tmp/file.txt", result)
130}
131
132func TestFormatRemotePath_IPv6(t *testing.T) {
133 result := formatRemotePath("::1", "/tmp/file.txt")

Callers

nothing calls this directly

Calls 1

formatRemotePathFunction · 0.85

Tested by

no test coverage detected