189
}
190
191
>
func run[T testingSuite](t *testing.T, s T, methodsParallel bool, args ...any) {
suite.go
192
>
t.Helper()
193
>
194
>
typ := reflect.TypeFor[T]()
195
>
if typ.Kind() != reflect.Pointer || typ.Elem().Kind() != reflect.Struct {
196
panic(fmt.Sprintf("parallelsuite.Run: suite must be a pointer to a struct, got %v", typ))
197
}
199
>
200
>
validateSuiteStruct(structType)
201
>
202
>
methods := discoverTestMethods(typ, structType, args)
203
>
if len(methods) == 0 {
204
panic(fmt.Sprintf("parallelsuite.Run: suite %s has no Test* methods", structType.Name()))
205
}