12
// This prevents the `mustEmbedUnimplementedFooBarBaz` method required by the GRPC v2
13
// gateway from polluting our tests.
15
>
v := reflect.ValueOf(obj)
16
>
if !v.IsValid() {
17
return
18
}
19
21
>
if t.Kind() == reflect.Pointer {
22
>
t = t.Elem()
23
>
}
24
>
for method := range t.Methods() {
25
>
if publicMethodRgx.MatchString(method.Name) {
26
>
cb(method)
27
>
}
28
}
29
}