agent/pkg/messages/messages_example_test.go
Snider ecd47fe3db revert fcb9c189e5
revert fix(agentic): harden TODO workspace write

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-18 11:22:27 +00:00

40 lines
752 B
Go

// SPDX-License-Identifier: EUPL-1.2
package messages
import (
"fmt"
)
func ExampleAgentCompleted() {
ev := AgentCompleted{
Agent: "codex",
Repo: "go-io",
Workspace: "core/go-io/task-5",
Status: "completed",
}
fmt.Println(ev.Agent, ev.Status)
// Output: codex completed
}
func ExampleQAResult() {
ev := QAResult{
Workspace: "core/go-io/task-5",
Repo: "go-io",
Passed: true,
}
fmt.Println(ev.Repo, ev.Passed)
// Output: go-io true
}
func ExampleQueueDrained() {
ev := QueueDrained{Completed: 3}
fmt.Println(ev.Completed)
// Output: 3
}
func ExampleWorkspacePushed() {
ev := WorkspacePushed{Repo: "go-io", Branch: "agent/fix-tests", Org: "core"}
fmt.Println(ev.Repo, ev.Org)
// Output: go-io core
}