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

Function TestFormatRemotePath_DomainName

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

Source from the content-addressed store, hash-verified

145}
146
147func TestFormatRemotePath_DomainName(t *testing.T) {
148 result := formatRemotePath("example.com", "/remote/path")
149 assert.Equal(t, "example.com:/remote/path", result)
150}
151
152func TestFormatRemotePath_EmptyHost(t *testing.T) {
153 result := formatRemotePath("", "/path")

Callers

nothing calls this directly

Calls 1

formatRemotePathFunction · 0.85

Tested by

no test coverage detected