agent/pkg/agentic/sync_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

27 lines
499 B
Go

// SPDX-License-Identifier: EUPL-1.2
package agentic
import "fmt"
func Example_shouldSyncStatus() {
fmt.Println(shouldSyncStatus("completed"))
fmt.Println(shouldSyncStatus("running"))
// Output:
// true
// false
}
func Example_syncBackoffSchedule() {
fmt.Println(syncBackoffSchedule(1))
fmt.Println(syncBackoffSchedule(2))
fmt.Println(syncBackoffSchedule(3))
fmt.Println(syncBackoffSchedule(4))
fmt.Println(syncBackoffSchedule(5))
// Output:
// 1s
// 5s
// 15s
// 1m0s
// 5m0s
}