TestFocusSessionMalformedJSON — guard against kitty output drift.
(t *testing.T)
| 404 | |
| 405 | // TestFocusSessionMalformedJSON — guard against kitty output drift. |
| 406 | func TestFocusSessionMalformedJSON(t *testing.T) { |
| 407 | stubRunnerOutput(t, func(args []string) ([]byte, error) { return []byte("{not json"), nil }) |
| 408 | focused, err := FocusSession("11111111-2222-4333-8444-555555555555", "claude") |
| 409 | if focused || err == nil { |
| 410 | t.Errorf("got (%v, %v); want (false, non-nil) for malformed JSON", focused, err) |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | // TestShellQuote — same contract as iterm/terminal/zellij. |
| 415 | func TestShellQuote(t *testing.T) { |
nothing calls this directly
no test coverage detected