TestFocusSessionEmptyID short-circuits without invoking kitty.
(t *testing.T)
| 161 | |
| 162 | // TestFocusSessionEmptyID short-circuits without invoking kitty. |
| 163 | func TestFocusSessionEmptyID(t *testing.T) { |
| 164 | rCalled := false |
| 165 | stubRunnerOutput(t, func(args []string) ([]byte, error) { |
| 166 | rCalled = true |
| 167 | return nil, nil |
| 168 | }) |
| 169 | focused, err := FocusSession("", "claude") |
| 170 | if focused || err != nil { |
| 171 | t.Errorf("FocusSession(\"\") = (%v, %v); want (false, nil)", focused, err) |
| 172 | } |
| 173 | if rCalled { |
| 174 | t.Error("RunnerOutput should not be called for empty session id") |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | // TestFocusSessionMatchesAndFocuses verifies the happy path: a |
| 179 | // foreground process under a kitty window runs claude with the target |
nothing calls this directly
no test coverage detected