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

Function sampleTaskRecord

internal/cli/task_test.go:2761–2779  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2759}
2760
2761func sampleTaskRecord() TaskRecord {
2762 return TaskRecord{
2763 ID: "task-1",
2764 Identifier: "OPS-42",
2765 Scope: taskpkg.ScopeWorkspace,
2766 WorkspaceID: "ws-alpha",
2767 ParentTaskID: "task-root",
2768 NetworkChannel: "builders",
2769 Title: "Investigate flaky task runs",
2770 Description: "Capture root cause",
2771 Status: taskpkg.TaskStatusReady,
2772 Owner: &taskpkg.Ownership{Kind: taskpkg.OwnerKindPool, Ref: "triage"},
2773 CreatedBy: taskpkg.ActorIdentity{Kind: taskpkg.ActorKindHuman, Ref: "local-user"},
2774 Origin: taskpkg.Origin{Kind: taskpkg.OriginKindCLI, Ref: "tasks.create"},
2775 CreatedAt: fixedTestNow,
2776 UpdatedAt: fixedTestNow,
2777 Metadata: json.RawMessage(`{"priority":"high"}`),
2778 }
2779}
2780
2781func sampleTaskBlockRecord() TaskBlockRecord {
2782 return TaskBlockRecord{

Calls

no outgoing calls

Tested by

no test coverage detected