(tasks []*model.Task)
| 296 | } |
| 297 | |
| 298 | func buildChildrenIndex(tasks []*model.Task) map[string][]*model.Task { |
| 299 | index := make(map[string][]*model.Task) |
| 300 | for _, t := range tasks { |
| 301 | if t.Parent != "" { |
| 302 | index[t.Parent] = append(index[t.Parent], t) |
| 303 | } |
| 304 | } |
| 305 | return index |
| 306 | } |
| 307 | |
| 308 | func collectChildrenTree(taskID string, index map[string][]*model.Task, visited map[string]bool) []statusChild { |
| 309 | children := index[taskID] |
no outgoing calls
no test coverage detected