]> git.giacomolli.uk - onechat/blob - clock_test.go
Hold the agent prompt and tools in one place
[onechat] / clock_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 newTestClock() *testClock {
11 return &testClock{
12 now: time.Date(2026, 1, 1, 12, 0, 0, 0, time.UTC),
13 }
14 }
15
16 func (c *testClock) Now() time.Time {
17 return c.now
18 }