]> git.giacomolli.uk - onechat/blob - clock_helper_test.go
Say that the agent can change its instructions
[onechat] / clock_helper_test.go
1 package main
2
3 import "time"
4
5 // TestClock is a clock that tests set by hand.
6 type TestClock struct {
7         now time.Time
8 }
9
10 func (c *TestClock) Now() time.Time {
11         return c.now
12 }
13
14 func newTestClock() *TestClock {
15         return &TestClock{
16                 now: time.Date(2026, 1, 1, 12, 0, 0, 0, time.UTC),
17         }
18 }