MCPcopy Create free account
hub / github.com/basecamp/hey-cli / TestViewShowsBoxNames

Function TestViewShowsBoxNames

internal/tui/tui_test.go:275–281  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

273
274 updated, _ := m.Update(keyPress("?"))
275 m = updated.(model)
276 if !strings.Contains(stripANSI(m.help.view()), "Could not save the help preference") {
277 t.Errorf("help preference failure is not visible: %q", m.help.view())
278 }
279}
280
281func TestModelResizesContentWhenThreadHelpChangesHeight(t *testing.T) {
282 for _, width := range []int{32, 40, 48, 64, 80, 100} {
283 t.Run(strconv.Itoa(width), func(t *testing.T) {
284 m := modelWithBoxes()

Callers

nothing calls this directly

Calls 3

modelWithBoxesFunction · 0.85
ViewMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected