diff options
author | Jonathan Amsterdam <jba@google.com> | 2023-08-04 13:33:35 -0400 |
---|---|---|
committer | Jonathan Amsterdam <jba@google.com> | 2023-09-08 20:37:12 +0000 |
commit | a742ae493ff59a71131706500ce53f85477897f0 (patch) | |
tree | 1f1dbf79d02bdfaf0383bf7d2f5ce7d9125c66c8 /api | |
parent | af3bf866b10e8b2db1c6ac625fc143685d0dbe0e (diff) | |
download | go-a742ae493ff59a71131706500ce53f85477897f0.tar.gz go-a742ae493ff59a71131706500ce53f85477897f0.zip |
testing/slogtest: add Run to run cases as subtests
This is an implementation of proposal #61758.
It adds a function to slogtest that runs each test case in a subtest,
instead of running them all at once.
That allows the caller to control which cases are run.
Fixes #61706.
Fixes #61758.
Change-Id: I95108b7b753675203ca7f0f00ccbc242bd9c2a9f
Reviewed-on: https://go-review.googlesource.com/c/go/+/516076
Reviewed-by: Alan Donovan <adonovan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'api')
-rw-r--r-- | api/next/61758.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/next/61758.txt b/api/next/61758.txt new file mode 100644 index 0000000000..35bd224965 --- /dev/null +++ b/api/next/61758.txt @@ -0,0 +1 @@ +pkg testing/slogtest, func Run(*testing.T, func(*testing.T) slog.Handler, func(*testing.T) map[string]interface{}) #61758 |