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

Function TestParseRemotePath_ColonButEmptyPath

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

Source from the content-addressed store, hash-verified

87}
88
89func TestParseRemotePath_ColonButEmptyPath(t *testing.T) {
90 host, path, ok := parseRemotePath("192.168.1.1:")
91 assert.False(t, ok)
92 assert.Equal(t, "", host)
93 assert.Equal(t, "", path)
94}
95
96func TestParseRemotePath_PathWithMultipleColons(t *testing.T) {
97 host, path, ok := parseRemotePath("host:path:with:colons")

Callers

nothing calls this directly

Calls 1

parseRemotePathFunction · 0.85

Tested by

no test coverage detected