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
128// TestPlaceholderMentionsTab: placeholder names both "/" and "Tab" as entry
129// points into the popover, so new users discover either way.
130func TestPlaceholderMentionsTab(t *testing.T) {
131 m := newTestModel(t, func(http.ResponseWriter, *http.Request) {})
132 view := m.View()
133 if !strings.Contains(view, "/ or Tab for commands") {
134 t.Fatalf("placeholder should mention both / and Tab: %s", view)
135 }
136 if strings.Contains(view, "/models") || strings.Contains(view, "/clear") {
137 t.Fatalf("placeholder still enumerates commands: %s", view)
138 }
139}
140
141// TestCtrlCIdleArmsThenQuits: first Ctrl+C in idle arms the status bar and

Callers

nothing calls this directly

Calls 2

newTestModelFunction · 0.85
ViewMethod · 0.45

Tested by

no test coverage detected