func truncateToOneAndAHalf(path string) error {
return os.Truncate(path, positionBytes+positionBytes/2)
}
-
-// 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
-}