agent/pkg/messages/messages_example_test.go
Virgil 6c69005aff feat(agent): implement fleet and sync RFC surfaces
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-31 07:27:15 +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
}