MCPcopy Create free account
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
267// TestPopoverClosesWhenPrefixMatchesNothing: typing a prefix that no command
268// satisfies closes the popover automatically (no empty frame).
269func TestPopoverClosesWhenPrefixMatchesNothing(t *testing.T) {
270 m := newTestModel(t, func(http.ResponseWriter, *http.Request) {})
271 mm := typeInto(m, "/zzz")
272 if mm.popoverOpen() {
273 t.Fatalf("popover should close when no prefix matches: %+v", mm.suggest)
274 }
275}
276
277// TestPopoverTabCyclesSelection: Tab moves the selection to the next row

Callers

nothing calls this directly

Calls 3

newTestModelFunction · 0.85
typeIntoFunction · 0.85
popoverOpenMethod · 0.80

Tested by

no test coverage detected