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

Function TestScpController_TryCopy_AliasInDest

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

Source from the content-addressed store, hash-verified

60}
61
62func TestScpController_TryCopy_AliasInDest(t *testing.T) {
63 cfg := newTestMainConfig()
64 ctrl := NewScpController("/local/file.txt", "server1:/remote/path/", cfg)
65
66 // Verify controller created correctly
67 assert.Equal(t, "server1:/remote/path/", ctrl.destination)
68
69 // Verify alias resolution for destination
70 resolved := config.ResolveAlias("server1", cfg)
71 assert.Equal(t, "192.168.1.1", resolved)
72}
73
74func TestScpController_Fields(t *testing.T) {
75 cfg := newTestMainConfig()

Callers

nothing calls this directly

Calls 3

ResolveAliasFunction · 0.92
newTestMainConfigFunction · 0.85
NewScpControllerFunction · 0.85

Tested by

no test coverage detected