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

Function TestScpController_TryCopy_AliasInSource

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

Source from the content-addressed store, hash-verified

48}
49
50func TestScpController_TryCopy_AliasInSource(t *testing.T) {
51 cfg := newTestMainConfig()
52 ctrl := NewScpController("server2:/remote/file.txt", "/local/dest.txt", cfg)
53
54 // Verify controller created correctly
55 assert.Equal(t, "server2:/remote/file.txt", ctrl.source)
56
57 // Verify alias resolution for source
58 resolved := config.ResolveAlias("server2", cfg)
59 assert.Equal(t, "192.168.1.2", resolved)
60}
61
62func TestScpController_TryCopy_AliasInDest(t *testing.T) {
63 cfg := newTestMainConfig()

Callers

nothing calls this directly

Calls 3

ResolveAliasFunction · 0.92
newTestMainConfigFunction · 0.85
NewScpControllerFunction · 0.85

Tested by

no test coverage detected