We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d2ba88 commit deab307Copy full SHA for deab307
internal/tdtest/tdtest.go
@@ -62,6 +62,8 @@ type set[TC any] struct {
62
}
63
64
// Run runs the given function for each (selected) element in the table.
65
+// TC must be a struct type. If that has a string field named "name",
66
+// that value will be used to name the associated subtest.
67
func Run[TC any](t *testing.T, table []TC, fn func(t *T, tc *TC)) {
68
s := &set[TC]{
69
t: t,
0 commit comments