package shadowdb import "time" // SetInMemoryOpenerClockForTest is the test-only seam to inject a // deterministic clock into InMemoryOpener. Lives in export_test.go // so the production API surface never exposes clock mutation. // // SetInMemoryOpenerClockForTest 是给 InMemoryOpener 注入确定时钟的 // 测试专用钩子. 存放于 export_test.go, 生产 API 永不暴露时钟变更. func SetInMemoryOpenerClockForTest(o *InMemoryOpener, clock func() time.Time) { o.clock = clock }