1
0
mirror of https://github.com/golang/go synced 2024-11-15 07:30:28 -07:00
go/doc/next
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
..
6-stdlib testing/fstest: return structured errors in TestFS 2024-04-05 17:45:39 +00:00
1-intro.md
2-language.md
3-tools.md Revert "cmd/go/internal/test: add 'tests' vet check to 'go test' suite" 2024-03-14 16:58:10 +00:00
4-runtime.md
5-toolchain.md
7-ports.md doc/go1.23: document macOS requirements 2024-02-14 18:18:25 +00:00