MCPcopy Create free account
hub / github.com/compozy/agh / CreateTask

Method CreateTask

internal/task/manager_test.go:474–480  ·  view source on GitHub ↗
(_ context.Context, taskRecord Task)

Source from the content-addressed store, hash-verified

472}
473
474func (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
482func (s *inMemoryManagerStore) DeleteTask(_ context.Context, id string) error {
483 taskID := strings.TrimSpace(id)

Callers

nothing calls this directly

Calls 2

fmtTestErrorFunction · 0.85
cloneTaskFunction · 0.85

Tested by

no test coverage detected