import "time"
-// testClock is a clock that tests set by hand.
-type testClock struct {
+// TestClock is a clock that tests set by hand.
+type TestClock struct {
now time.Time
}
-func newTestClock() *testClock {
- return &testClock{
- now: time.Date(2026, 1, 1, 12, 0, 0, 0, time.UTC),
- }
+func (c *TestClock) Now() time.Time {
+ return c.now
}
-func (c *testClock) Now() time.Time {
- return c.now
+func newTestClock() *TestClock {
+ return &TestClock{
+ now: time.Date(2026, 1, 1, 12, 0, 0, 0, time.UTC),
+ }
}