1
0
mirror of https://github.com/golang/go synced 2024-11-15 08:40:59 -07:00
go/doc/next/6-stdlib
Olivier Mengué 74cce866f8 testing/fstest: return structured errors in TestFS
TestFS now returns a structured error built with errors.Join to allow to
inspect errors using errors.Is and errors.As.

All errors are now wrapped using fmt.Errorf and %w.

Fixes #63675.

Change-Id: I8fc3363f8ae70085af4afdb84c16be9ca70d7731
Reviewed-on: https://go-review.googlesource.com/c/go/+/537015
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
2024-04-05 17:45:39 +00:00
..
99-minor testing/fstest: return structured errors in TestFS 2024-04-05 17:45:39 +00:00
0-heading.md doc: fix various release notes mistakes 2024-03-15 03:39:16 +00:00
1-time.md doc: document new timer behavior 2024-03-15 03:39:19 +00:00