go/src/time
Damien Neil d90ce588ea internal/synctest: new package for testing concurrent code
Add an internal (for now) implementation of testing/synctest.

The synctest.Run function executes a tree of goroutines in an
isolated environment using a fake clock. The synctest.Wait function
allows a test to wait for all other goroutines within the test
to reach a blocking point.

For #67434
For #69687

Change-Id: Icb39e54c54cece96517e58ef9cfb18bf68506cfc
Reviewed-on: https://go-review.googlesource.com/c/go/+/591997
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2024-11-19 19:40:40 +00:00
..
testdata
tzdata
abs_test.go time: optimize time <-> date conversions 2024-07-31 21:29:46 +00:00
embed.go
example_test.go time: add examples for Since, Until, Abs and fix some comments 2024-11-05 17:09:35 +00:00
export_android_test.go
export_test.go
export_windows_test.go
format.go time: add examples for Since, Until, Abs and fix some comments 2024-11-05 17:09:35 +00:00
format_rfc3339.go time: optimize time <-> date conversions 2024-07-31 21:29:46 +00:00
format_test.go time: fix time zone parsing when format includes time zone seconds 2024-07-02 20:01:50 +00:00
genzabbrs.go all: change from sort functions to slices functions where feasible 2024-05-23 01:00:11 +00:00
internal_test.go time: time/internal_test.go remove redundant type conversion 2024-06-03 14:56:37 +00:00
linkname_test.go time: optimize time <-> date conversions 2024-07-31 21:29:46 +00:00
mono_test.go
sleep.go timer: fix Stop link in Timer.Reset doc comment 2024-10-14 21:03:43 +00:00
sleep_test.go runtime,time: use atomic.Int32 for isSending 2024-10-21 21:48:17 +00:00
sys_plan9.go
sys_unix.go
sys_windows.go
tick.go time: add available godoc link 2024-04-04 14:21:30 +00:00
tick_test.go time: add examples for Since, Until, Abs and fix some comments 2024-11-05 17:09:35 +00:00
time.go internal/synctest: new package for testing concurrent code 2024-11-19 19:40:40 +00:00
time_test.go time: add examples for Since, Until, Abs and fix some comments 2024-11-05 17:09:35 +00:00
tzdata_test.go
zoneinfo.go time: optimize time <-> date conversions 2024-07-31 21:29:46 +00:00
zoneinfo_abbrs_windows.go time: regenerate zoneinfo_abbrs_windows.go 2024-11-12 18:43:12 +00:00
zoneinfo_android.go
zoneinfo_android_test.go
zoneinfo_goroot.go
zoneinfo_ios.go
zoneinfo_js.go
zoneinfo_plan9.go internal/synctest: new package for testing concurrent code 2024-11-19 19:40:40 +00:00
zoneinfo_read.go internal/synctest: new package for testing concurrent code 2024-11-19 19:40:40 +00:00
zoneinfo_test.go
zoneinfo_unix.go
zoneinfo_unix_test.go
zoneinfo_wasip1.go
zoneinfo_windows.go all: remove unnecessary symbols and add missing symbols 2024-09-09 16:44:45 +00:00
zoneinfo_windows_test.go