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

Function validTask

internal/task/validate_test.go:594–616  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

592}
593
594func validTask() Task {
595 now := time.Date(2026, 4, 14, 12, 0, 0, 0, time.UTC)
596 return Task{
597 ID: "task-1",
598 Identifier: "TASK-1",
599 Scope: ScopeGlobal,
600 Title: "Bootstrap internal/task",
601 Description: "Create the task domain",
602 Priority: PriorityHigh,
603 MaxAttempts: DefaultTaskMaxAttempts,
604 Status: TaskStatusReady,
605 ApprovalPolicy: ApprovalPolicyNone,
606 ApprovalState: ApprovalStateNotRequired,
607 Owner: &Ownership{Kind: OwnerKindHuman, Ref: "user-1"},
608 CreatedBy: ActorIdentity{Kind: ActorKindHuman, Ref: "user-1"},
609 Origin: Origin{Kind: OriginKindCLI, Ref: "agh task create"},
610 CreatedAt: now,
611 UpdatedAt: now,
612 Metadata: json.RawMessage(`{"source":"cli"}`),
613 ClosedAt: time.Time{},
614 ParentTaskID: "",
615 }
616}
617
618func validRun() Run {
619 now := time.Date(2026, 4, 14, 12, 30, 0, 0, time.UTC)

Calls

no outgoing calls

Tested by

no test coverage detected