MCPcopy Create free account
hub / github.com/codehamr/codehamr / TestPlaceholderMentionsTab

Function TestPlaceholderMentionsTab

internal/tui/tui_test.go:129–138  ·  view source on GitHub ↗

TestPlaceholderMentionsTab: placeholder names both "/" and "Tab" as entry points into the popover, so new users discover either way.

(t *testing.T)

Source from the content-addressed store, hash-verified

127// TestPlaceholderMentionsTab: placeholder names both "/" and "Tab" as entry
128// points into the popover, so new users discover either way.
129func 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.

Callers

nothing calls this directly

Calls 2

newTestModelFunction · 0.85
ViewMethod · 0.45

Tested by

no test coverage detected