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

Function newTestApp

internal/tui/dashboard_test.go:12–19  ·  view source on GitHub ↗

newTestApp creates a minimal App for testing scroll and rendering.

(stories []prd.UserStory, width, height int)

Source from the content-addressed store, hash-verified

10
11// newTestApp creates a minimal App for testing scroll and rendering.
12func newTestApp(stories []prd.UserStory, width, height int) *App {
13 return &App{
14 prd: &prd.PRD{UserStories: stories},
15 width: width,
16 height: height,
17 viewMode: ViewDashboard,
18 }
19}
20
21func makeStories(n int) []prd.UserStory {
22 stories := make([]prd.UserStory, n)

Calls

no outgoing calls

Tested by

no test coverage detected