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

Function TestParseRemotePath_PlainHostPath

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

Source from the content-addressed store, hash-verified

7)
8
9func TestParseRemotePath_PlainHostPath(t *testing.T) {
10 host, path, ok := parseRemotePath("192.168.1.1:/tmp/file.txt")
11 assert.True(t, ok)
12 assert.Equal(t, "192.168.1.1", host)
13 assert.Equal(t, "/tmp/file.txt", path)
14}
15
16func TestParseRemotePath_PlainHostPathWithPort(t *testing.T) {
17 host, path, ok := parseRemotePath("example.com:22:/tmp/file.txt")

Callers

nothing calls this directly

Calls 1

parseRemotePathFunction · 0.85

Tested by

no test coverage detected