tstest, tstime: mockable timers and tickers

This change introduces tstime.Clock which is the start of a mockable
interface for use with testing other upcoming code changes.

Fixes #8463

Change-Id: I59eabc797828809194575736615535d918242ec4
Signed-off-by: Adrian Dewhurst <adrian@tailscale.com>
This commit is contained in:
Adrian Dewhurst
2023-06-23 13:45:59 -04:00
committed by Adrian Dewhurst
parent 28ee355c56
commit 92fb80d55f
3 changed files with 3128 additions and 58 deletions

2439
tstest/clock_test.go Normal file

File diff suppressed because it is too large Load Diff