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

Function makeStories

internal/tui/dashboard_test.go:21–31  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

19}
20
21func makeStories(n int) []prd.UserStory {
22 stories := make([]prd.UserStory, n)
23 for i := range stories {
24 stories[i] = prd.UserStory{
25 ID: fmt.Sprintf("US-%03d", i+1),
26 Title: fmt.Sprintf("Story %d", i+1),
27 Priority: float64(i + 1),
28 }
29 }
30 return stories
31}
32
33func TestScrollOffset_FollowsCursorDown(t *testing.T) {
34 app := newTestApp(makeStories(20), 120, 20)

Calls

no outgoing calls

Tested by

no test coverage detected