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

Function TestSSHController_TryLogin_CacheNotFound

pkg/control/ssh_test.go:61–69  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

59}
60
61func TestSSHController_TryLogin_CacheNotFound(t *testing.T) {
62 cfg := newTestMainConfig()
63 ctrl := NewSSHController("10.0.0.1", cfg)
64
65 server, idx, found := config.SelectServerCache("", ctrl.targetIP, ctrl.configuration)
66 assert.False(t, found)
67 assert.Nil(t, server)
68 assert.Equal(t, 0, idx)
69}
70
71func TestSSHController_TryLogin_AliasResolution(t *testing.T) {
72 cfg := newTestMainConfig()

Callers

nothing calls this directly

Calls 3

SelectServerCacheFunction · 0.92
newTestMainConfigFunction · 0.85
NewSSHControllerFunction · 0.85

Tested by

no test coverage detected