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

Function TestTryLogin_CacheNotFound

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

Source from the content-addressed store, hash-verified

58}
59
60func TestTryLogin_CacheNotFound(t *testing.T) {
61 cfg, _ := setupSSHTestConfig(t)
62
63 ctrl := NewSSHController("10.0.0.99", cfg)
64 ctrl.TryLogin("", 1, 1*time.Nanosecond)
65
66 assert.Equal(t, "10.0.0.99", ctrl.targetIP)
67 assert.False(t, ctrl.cacheIsFound)
68}
69
70func TestTryLogin_WithAlias(t *testing.T) {
71 cfg, _ := setupSSHTestConfig(t)

Callers

nothing calls this directly

Calls 3

TryLoginMethod · 0.95
setupSSHTestConfigFunction · 0.85
NewSSHControllerFunction · 0.85

Tested by

no test coverage detected