AllComplete returns true when all stories have passes: true.
()
| 41 | |
| 42 | // AllComplete returns true when all stories have passes: true. |
| 43 | func (p *PRD) AllComplete() bool { |
| 44 | if len(p.UserStories) == 0 { |
| 45 | return true |
| 46 | } |
| 47 | for _, story := range p.UserStories { |
| 48 | if !story.Passes { |
| 49 | return false |
| 50 | } |
| 51 | } |
| 52 | return true |
| 53 | } |
| 54 | |
| 55 | // NextStory returns the next story to work on. |
| 56 | // It returns: |
no outgoing calls