testing/synctest package
Package docs for deterministic testing of concurrent code using bubbles and fake time.
Package docs for deterministic testing of concurrent code using bubbles and fake time.
- Author: Go Team
- Authority: primary
- Kind: package-doc
- URL: https://pkg.go.dev/testing/synctest
What it covers
- synctest bubbles
- deterministic concurrency scheduling
- fake clock progression in tests
Why authoritative
Official standard library documentation for deterministic concurrency testing.
Use when
- how do I test concurrent Go code deterministically
- when should I use testing/synctest
- how does fake time work in Go tests
Keywords
- testing/synctest, concurrency tests, fake time, deterministic testing, bubbles