(t *testing.T)
| 58 | } |
| 59 | |
| 60 | func 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 | |
| 70 | func TestTryLogin_WithAlias(t *testing.T) { |
| 71 | cfg, _ := setupSSHTestConfig(t) |
nothing calls this directly
no test coverage detected