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

Function sampleTaskDetailRecord

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

Source from the content-addressed store, hash-verified

3043}
3044
3045func sampleTaskDetailRecord() TaskDetailRecord {
3046 return TaskDetailRecord{
3047 Task: sampleTaskRecord(),
3048 Children: []TaskSummaryRecord{
3049 {
3050 ID: "task-child",
3051 Identifier: "OPS-43",
3052 Scope: taskpkg.ScopeWorkspace,
3053 WorkspaceID: "ws-alpha",
3054 Title: "Check runtime logs",
3055 Status: taskpkg.TaskStatusInProgress,
3056 Owner: &taskpkg.Ownership{Kind: taskpkg.OwnerKindHuman, Ref: "alice"},
3057 },
3058 },
3059 Dependencies: []TaskDependencyRecord{
3060 {
3061 TaskID: "task-1",
3062 DependsOnTaskID: "task-blocker",
3063 Kind: taskpkg.DependencyKindBlocks,
3064 CreatedAt: fixedTestNow,
3065 },
3066 },
3067 Runs: []TaskRunRecord{
3068 sampleTaskRunRecord(taskpkg.TaskRunStatusRunning),
3069 },
3070 Events: []TaskEventRecord{
3071 {
3072 ID: "evt-1",
3073 TaskID: "task-1",
3074 RunID: "run-1",
3075 EventType: "task.run_started",
3076 Actor: taskpkg.ActorIdentity{Kind: taskpkg.ActorKindHuman, Ref: "local-user"},
3077 Origin: taskpkg.Origin{Kind: taskpkg.OriginKindCLI, Ref: "tasks.run.start"},
3078 Timestamp: fixedTestNow,
3079 },
3080 },
3081 }
3082}

Calls 2

sampleTaskRecordFunction · 0.85
sampleTaskRunRecordFunction · 0.85

Tested by

no test coverage detected