newTestApp creates a minimal App for testing scroll and rendering.
(stories []prd.UserStory, width, height int)
| 10 | |
| 11 | // newTestApp creates a minimal App for testing scroll and rendering. |
| 12 | func 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 | |
| 21 | func makeStories(n int) []prd.UserStory { |
| 22 | stories := make([]prd.UserStory, n) |
no outgoing calls
no test coverage detected