MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestAndNMore_Removed

Function TestAndNMore_Removed

internal/tui/dashboard_test.go:187–196  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

185}
186
187func TestAndNMore_Removed(t *testing.T) {
188 // Create more stories than can fit in the panel
189 app := newTestApp(makeStories(20), 120, 15)
190
191 output := app.renderStoriesPanel(40, 12)
192
193 if strings.Contains(output, "... and") || strings.Contains(output, "more") {
194 t.Error("expected '... and N more' to be removed from stories panel")
195 }
196}

Callers

nothing calls this directly

Calls 3

newTestAppFunction · 0.85
makeStoriesFunction · 0.85
renderStoriesPanelMethod · 0.80

Tested by

no test coverage detected