buildIDMap groups tasks by their ID.
(tasks []*model.Task)
| 314 | |
| 315 | // buildIDMap groups tasks by their ID. |
| 316 | func buildIDMap(tasks []*model.Task) map[string][]*model.Task { |
| 317 | m := make(map[string][]*model.Task) |
| 318 | for _, t := range tasks { |
| 319 | m[t.ID] = append(m[t.ID], t) |
| 320 | } |
| 321 | return m |
| 322 | } |
| 323 | |
| 324 | // collectAllIDs returns a slice of all task IDs. |
| 325 | func collectAllIDs(tasks []*model.Task) []string { |
no outgoing calls
no test coverage detected