mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-01 14:43:07 +02:00
support variables in modify request,response middlewares
This commit is contained in:
@@ -109,8 +109,7 @@ func ExpectType[T any](t *testing.T, got any) (_ T) {
|
||||
t.Helper()
|
||||
_, ok := got.(T)
|
||||
if !ok {
|
||||
t.Fatalf("expected type %s, got %s", reflect.TypeFor[T](), reflect.TypeOf(got).Elem())
|
||||
return
|
||||
t.Fatalf("expected type %s, got %T", reflect.TypeFor[T](), got)
|
||||
}
|
||||
return got.(T)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user