go/src/testing
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
..
fstest testing/fstest: return structured errors in TestFS 2024-04-05 17:45:39 +00:00
internal/testdeps testing: add available godoc link 2023-11-08 17:55:47 +00:00
iotest testing: add available godoc link 2023-11-08 17:55:47 +00:00
quick testing: add available godoc link 2023-11-08 17:55:47 +00:00
slogtest testing: add available godoc link 2023-11-08 17:55:47 +00:00
allocs.go
allocs_test.go
benchmark.go Revert "testing: simplify concurrency and cleanup logic" 2023-11-27 16:49:24 +00:00
benchmark_test.go
cover.go cmd/go,testing: re-implement testing.Coverage 2023-05-23 11:37:31 +00:00
example.go testing: enforce -skip in example tests 2023-07-21 21:37:46 +00:00
export_test.go
flag_test.go all: use ^TestName$ regular pattern for invoking a single test 2023-09-05 23:35:29 +00:00
fuzz.go testing: fix typo in comment 2024-02-28 20:32:54 +00:00
helper_test.go testing: use subprocesses in TestTBHelper and TestTBHelperParallel 2023-11-21 17:24:47 +00:00
helperfuncs_test.go testing: use subprocesses in TestTBHelper and TestTBHelperParallel 2023-11-21 17:24:47 +00:00
match.go all: use built-in clear to clear maps 2023-07-27 22:07:13 +00:00
match_test.go
newcover.go cmd/go,testing: re-implement testing.Coverage 2023-05-23 11:37:31 +00:00
panic_test.go Revert "testing: simplify concurrency and cleanup logic" 2023-11-27 16:49:24 +00:00
run_example.go
run_example_wasm.go
sub_test.go testing: add regression tests for reentrant calls to T.Run 2023-12-01 21:27:08 +00:00
testing.go all: fix a large number of comments 2024-03-26 19:58:28 +00:00
testing_other.go
testing_test.go Revert "testing: add TB.SetGOMAXPROCS function" 2024-03-22 13:07:36 +00:00
testing_windows.go