Apply go fix -reflecttypefor ./...

This commit is contained in:
Michael Eischer
2026-07-22 22:26:27 +02:00
parent 2c169edad4
commit e2495b72bb
+2 -2
View File
@@ -67,7 +67,7 @@ type testFunction struct {
}
func (s *Suite[C]) testFuncs(t testing.TB) (funcs []testFunction) {
tpe := reflect.TypeOf(s)
tpe := reflect.TypeFor[*Suite[C]]()
v := reflect.ValueOf(s)
for i := 0; i < tpe.NumMethod(); i++ {
@@ -102,7 +102,7 @@ type benchmarkFunction struct {
}
func (s *Suite[C]) benchmarkFuncs(t testing.TB) (funcs []benchmarkFunction) {
tpe := reflect.TypeOf(s)
tpe := reflect.TypeFor[*Suite[C]]()
v := reflect.ValueOf(s)
for i := 0; i < tpe.NumMethod(); i++ {