(_ context.Context, taskRecord Task)
| 534 | } |
| 535 | |
| 536 | func (s *inMemoryManagerStore) UpdateTask(_ context.Context, taskRecord Task) error { |
| 537 | if _, exists := s.tasks[taskRecord.ID]; !exists { |
| 538 | return ErrTaskNotFound |
| 539 | } |
| 540 | s.tasks[taskRecord.ID] = cloneTask(taskRecord) |
| 541 | return nil |
| 542 | } |
| 543 | |
| 544 | func (s *inMemoryManagerStore) GetTask(_ context.Context, id string) (Task, error) { |
| 545 | record, ok := s.tasks[strings.TrimSpace(id)] |
nothing calls this directly
no test coverage detected