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

Function cloneTask

internal/task/manager_test.go:9769–9775  ·  view source on GitHub ↗
(record Task)

Source from the content-addressed store, hash-verified

9767}
9768
9769func cloneTask(record Task) Task {
9770 cloned := record
9771 cloned.Owner = cloneOwnership(record.Owner)
9772 cloned.NeedsAttention = cloneNeedsAttention(record.NeedsAttention)
9773 cloned.Metadata = cloneRawJSON(record.Metadata)
9774 return cloned
9775}
9776
9777func cloneTaskBlock(record TaskBlock) TaskBlock {
9778 cloned := record

Callers 9

snapshotMethod · 0.85
CreateTaskMethod · 0.85
UpdateTaskMethod · 0.85
GetTaskMethod · 0.85
ClaimNextRunMethod · 0.85
ReserveQueuedRunMethod · 0.85

Calls 3

cloneOwnershipFunction · 0.70
cloneNeedsAttentionFunction · 0.70
cloneRawJSONFunction · 0.70

Tested by

no test coverage detected