Documentation ¶
Overview ¶
Package subtest provides a backwards-compatible way to run subtests.
For Go 1.7 and higher, it uses testing.T's run method. For lower versions it mimics subtests by logging additional information.
package foo import "github.com/mpvl/subtest" var testCases = ... func TestFoo(t *testing.T) { for _, tc := range testCases { subtest.Run(t, tc.name, func(t *testing.T) { tc.doTest() }) } }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.