(index string)
| 332 | } |
| 333 | |
| 334 | func (t *taskListImpl) Find(index string) Task { |
| 335 | numericIndex := indexFromString(index) |
| 336 | if numericIndex == nil { |
| 337 | return nil |
| 338 | } |
| 339 | var node TaskNode = t // -golint |
| 340 | for _, i := range numericIndex { |
| 341 | if node = node.At(i); node == nil { |
| 342 | return nil |
| 343 | } |
| 344 | } |
| 345 | return node.(Task) |
| 346 | } |
| 347 | |
| 348 | // FindAll recursively returns all matching nodes. |
| 349 | func (t *taskListImpl) FindAll(predicate func(task Task) bool) []Task { |
nothing calls this directly
no test coverage detected