NowOrNil returns the currently stubbed time if the current time is stubbed, and nil otherwise. This is mainly for database-facing test paths that want to inject a deterministic wall-clock timestamp when time is stubbed, but to fall back to a database-side time default in production.
()
| 25 | // deterministic wall-clock timestamp when time is stubbed, but to fall back |
| 26 | // to a database-side time default in production. |
| 27 | NowOrNil() *time.Time |
| 28 | } |
no outgoing calls
no test coverage detected