(_ context.Context, taskRecord Task)
| 472 | } |
| 473 | |
| 474 | func (s *inMemoryManagerStore) CreateTask(_ context.Context, taskRecord Task) error { |
| 475 | if _, exists := s.tasks[taskRecord.ID]; exists { |
| 476 | return fmtTestError("%w: duplicate task %q", ErrValidation, taskRecord.ID) |
| 477 | } |
| 478 | s.tasks[taskRecord.ID] = cloneTask(taskRecord) |
| 479 | return nil |
| 480 | } |
| 481 | |
| 482 | func (s *inMemoryManagerStore) DeleteTask(_ context.Context, id string) error { |
| 483 | taskID := strings.TrimSpace(id) |
nothing calls this directly
no test coverage detected