You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
4 months ago
..
lazy.go types/lazy: add (*SyncValue[T]).SetForTest method 4 months ago
sync_test.go types/lazy: add (*SyncValue[T]).SetForTest method 4 months ago
unsync.go types/lazy: helpers for lazily computed values 2 years ago
unsync_test.go types/lazy: helpers for lazily computed values 2 years ago