]> Cypherpunks.ru repositories - gostls13.git/commit
testing/slogtest: add Run to run cases as subtests
authorJonathan Amsterdam <jba@google.com>
Fri, 4 Aug 2023 17:33:35 +0000 (13:33 -0400)
committerJonathan Amsterdam <jba@google.com>
Fri, 8 Sep 2023 20:37:12 +0000 (20:37 +0000)
commita742ae493ff59a71131706500ce53f85477897f0
tree1f1dbf79d02bdfaf0383bf7d2f5ce7d9125c66c8
parentaf3bf866b10e8b2db1c6ac625fc143685d0dbe0e
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>
api/next/61758.txt [new file with mode: 0644]
src/go/build/deps_test.go
src/testing/slogtest/run_test.go [new file with mode: 0644]
src/testing/slogtest/slogtest.go