tailscale/types/lazy
Nick Khyl 5d09649b0b types/lazy: add (*SyncValue[T]).SetForTest method
It is sometimes necessary to change a global lazy.SyncValue for the duration of a test. This PR adds a (*SyncValue[T]).SetForTest method to facilitate that.

Updates #12687

Signed-off-by: Nick Khyl <nickk@tailscale.com>
2024-07-22 15:10:31 -05:00
..
lazy.go types/lazy: add (*SyncValue[T]).SetForTest method 2024-07-22 15:10:31 -05:00
sync_test.go types/lazy: add (*SyncValue[T]).SetForTest method 2024-07-22 15:10:31 -05:00
unsync_test.go types/lazy: helpers for lazily computed values 2023-02-10 20:59:58 -08:00
unsync.go types/lazy: helpers for lazily computed values 2023-02-10 20:59:58 -08:00