(t *testing.T)
| 91 | } |
| 92 | |
| 93 | func TestTryLogin_EmptyUser(t *testing.T) { |
| 94 | cfg, _ := setupSSHTestConfig(t) |
| 95 | |
| 96 | ctrl := NewSSHController("192.168.1.1", cfg) |
| 97 | ctrl.TryLogin("", 1, 1*time.Nanosecond) |
| 98 | |
| 99 | // Empty user should find any cache matching IP |
| 100 | assert.Equal(t, "192.168.1.1", ctrl.targetIP) |
| 101 | assert.True(t, ctrl.cacheIsFound) |
| 102 | } |
| 103 | |
| 104 | func TestTryLogin_NoCombinations(t *testing.T) { |
| 105 | cfg, _ := setupSSHTestConfig(t) |
nothing calls this directly
no test coverage detected