func SetOracleHookCurrentTime(oc oracle.Oracle, t time.Time) {
	switch o := oc.(type) {
	case *localOracle:
		if o.hook == nil {
			o.hook = &struct {
				currentTime time.Time
			}{}
		}
		o.hook.currentTime = t
	}
}
SetOracleHookCurrentTime exports localOracle's time hook to test.
package oracles
import (
	"sync/atomic"
	"time"
	"github.com/tikv/client-go/v2/oracle"
)