TestPopoverClosesWhenPrefixMatchesNothing: typing a prefix that no command satisfies closes the popover automatically (no empty frame).
(t *testing.T)
| 266 | // TestPopoverClosesWhenPrefixMatchesNothing: typing a prefix that no command |
| 267 | // satisfies closes the popover automatically (no empty frame). |
| 268 | func 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. |
nothing calls this directly
no test coverage detected