SetLinkClockForTesting sets the clock the linked-change time budget reads. Production code must not call this. Set it only with no request in flight.
(clock func() time.Time)
| 362 | // SetLinkClockForTesting sets the clock the linked-change time budget reads. |
| 363 | // Production code must not call this. Set it only with no request in flight. |
| 364 | func (s *Store) SetLinkClockForTesting(clock func() time.Time) (restore func()) { |
| 365 | prev := s.linkClock |
| 366 | s.linkClock = clock |
| 367 | return func() { s.linkClock = prev } |
| 368 | } |
| 369 | |
| 370 | // SeedFromTemplateForTesting seeds the workspace from tmpl exactly as |
| 371 | // SeedCollectionsFromTemplate seeds it from a shipped template named |
no outgoing calls