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

Function TestScpController_TryCopy_SourceContainsColon

pkg/control/scp_test.go:19–30  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

17}
18
19func TestScpController_TryCopy_SourceContainsColon(t *testing.T) {
20 cfg := newTestMainConfig()
21 ctrl := NewScpController("server1:/remote/path/file.txt", "/local/path/", cfg)
22
23 // Verify controller fields are set
24 assert.Equal(t, "server1:/remote/path/file.txt", ctrl.source)
25 assert.Equal(t, "/local/path/", ctrl.destination)
26
27 // Verify alias resolution
28 resolved := config.ResolveAlias("server1", cfg)
29 assert.Equal(t, "192.168.1.1", resolved)
30}
31
32func TestScpController_TryCopy_DestContainsColon(t *testing.T) {
33 cfg := newTestMainConfig()

Callers

nothing calls this directly

Calls 3

ResolveAliasFunction · 0.92
newTestMainConfigFunction · 0.85
NewScpControllerFunction · 0.85

Tested by

no test coverage detected