mirror of
https://github.com/restic/restic.git
synced 2026-08-06 13:43:18 +00:00
Apply go fix -reflecttypefor ./...
This commit is contained in:
@@ -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++ {
|
||||
|
||||
Reference in New Issue
Block a user