(_ context.Context, id string)
| 542 | } |
| 543 | |
| 544 | func (s *inMemoryManagerStore) GetTask(_ context.Context, id string) (Task, error) { |
| 545 | record, ok := s.tasks[strings.TrimSpace(id)] |
| 546 | if !ok { |
| 547 | return Task{}, ErrTaskNotFound |
| 548 | } |
| 549 | cloned := cloneTask(record) |
| 550 | cloned.LatestEventSeq = s.latestEventSeq(cloned.ID) |
| 551 | return cloned, nil |
| 552 | } |
| 553 | |
| 554 | func (s *inMemoryManagerStore) ListTasks(_ context.Context, query Query) ([]Summary, error) { |
| 555 | if err := query.Validate("task_query"); err != nil { |
nothing calls this directly
no test coverage detected