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

Function TestTryCopy_CacheNotFound

pkg/control/scp_integration_test.go:137–145  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

135}
136
137func TestTryCopy_CacheNotFound(t *testing.T) {
138 cfg, _ := setupSCPTestConfig(t)
139
140 ctrl := NewScpController("10.0.0.99:/remote/file.txt", "/local/dest.txt", cfg)
141 ctrl.TryCopy("", 1, false, 1*time.Nanosecond)
142
143 assert.Equal(t, "10.0.0.99", ctrl.destIP)
144 assert.False(t, ctrl.cacheIsFound)
145}
146
147func TestTryCopy_WithUserFilter(t *testing.T) {
148 cfg, _ := setupSCPTestConfig(t)

Callers

nothing calls this directly

Calls 3

TryCopyMethod · 0.95
setupSCPTestConfigFunction · 0.85
NewScpControllerFunction · 0.85

Tested by

no test coverage detected