core/tracing: remove unnecessary 'copy' field skip in TestAllHooksCalled

This commit is contained in:
VolodymyrBg 2025-09-16 10:01:44 +03:00 committed by GitHub
parent b05fe4aa64
commit 6795a75910
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -280,10 +280,6 @@ func TestAllHooksCalled(t *testing.T) {
if field.Type.Kind() != reflect.Func { if field.Type.Kind() != reflect.Func {
continue continue
} }
// Skip non-hooks, i.e. Copy
if field.Name == "copy" {
continue
}
// Skip if field is not set // Skip if field is not set
if wrappedValue.Field(i).IsNil() { if wrappedValue.Field(i).IsNil() {
continue continue