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

Function validEvent

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

Source from the content-addressed store, hash-verified

629}
630
631func validEvent() Event {
632 now := time.Date(2026, 4, 14, 13, 0, 0, 0, time.UTC)
633 return Event{
634 ID: "evt-1",
635 TaskID: "task-1",
636 EventType: "task.created",
637 Actor: ActorIdentity{Kind: ActorKindHuman, Ref: "user-1"},
638 Origin: Origin{Kind: OriginKindCLI, Ref: "agh task create"},
639 Payload: json.RawMessage(`{"source":"cli"}`),
640 Timestamp: now,
641 }
642}
643
644func validTaskRunIdempotency() RunIdempotency {
645 now := time.Date(2026, 4, 14, 13, 30, 0, 0, time.UTC)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected