TestPlaceholderMentionsTab: placeholder names both "/" and "Tab" as entry points into the popover, so new users discover either way.
(t *testing.T)
| 127 | // TestPlaceholderMentionsTab: placeholder names both "/" and "Tab" as entry |
| 128 | // points into the popover, so new users discover either way. |
| 129 | func TestPlaceholderMentionsTab(t *testing.T) { |
| 130 | m := newTestModel(t, func(http.ResponseWriter, *http.Request) {}) |
| 131 | view := m.View() |
| 132 | if !strings.Contains(view, "/ or Tab for commands") { |
| 133 | t.Fatalf("placeholder should mention both / and Tab: %s", view) |
| 134 | } |
| 135 | if strings.Contains(view, "/models") || strings.Contains(view, "/clear") { |
| 136 | t.Fatalf("placeholder still enumerates commands: %s", view) |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | // TestCtrlCIdleArmsThenQuits: first Ctrl+C in idle arms the status bar and |
| 141 | // returns a Tick cmd; second Ctrl+C before the window expires returns Quit. |
nothing calls this directly
no test coverage detected