MCPcopy Index your code
hub / github.com/codehamr/codehamr / TestPopoverClosesWhenPrefixMatchesNothing

Function TestPopoverClosesWhenPrefixMatchesNothing

internal/tui/tui_test.go:268–274  ·  view source on GitHub ↗

TestPopoverClosesWhenPrefixMatchesNothing: typing a prefix that no command satisfies closes the popover automatically (no empty frame).

(t *testing.T)

Source from the content-addressed store, hash-verified

266// TestPopoverClosesWhenPrefixMatchesNothing: typing a prefix that no command
267// satisfies closes the popover automatically (no empty frame).
268func TestPopoverClosesWhenPrefixMatchesNothing(t *testing.T) {
269 m := newTestModel(t, func(http.ResponseWriter, *http.Request) {})
270 mm := typeInto(m, "/zzz")
271 if mm.popoverOpen() {
272 t.Fatalf("popover should close when no prefix matches: %+v", mm.suggest)
273 }
274}
275
276// TestPopoverTabCyclesSelection: Tab moves the selection to the next row
277// without touching the textarea, zsh-style cycling.

Callers

nothing calls this directly

Calls 3

newTestModelFunction · 0.85
typeIntoFunction · 0.85
popoverOpenMethod · 0.80

Tested by

no test coverage detected