MCPcopy Create free account
hub / github.com/Facets-cloud/flow / TestFocusSessionMalformedJSON

Function TestFocusSessionMalformedJSON

internal/kitty/kitty_test.go:406–412  ·  view source on GitHub ↗

TestFocusSessionMalformedJSON — guard against kitty output drift.

(t *testing.T)

Source from the content-addressed store, hash-verified

404
405// TestFocusSessionMalformedJSON — guard against kitty output drift.
406func 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.
415func TestShellQuote(t *testing.T) {

Callers

nothing calls this directly

Calls 2

stubRunnerOutputFunction · 0.70
FocusSessionFunction · 0.70

Tested by

no test coverage detected