Open xhd2015 opened 1 week ago
Given the following code:
type Base struct { } func (c Base) Validate(){} type Sub struct { Base }
Setting up interceptor Sub.Validate would fail with xgo 1.0.40:
Sub.Validate
func TestValidate(t *testing.T){ trap.AddFuncInterceptor(Sub.Validate, ....) }
The workaround:
func TestValidate(t *testing.T){ trap.AddFuncInterceptor(Base.Validate, ....) }
Given the following code:
Setting up interceptor
Sub.Validate
would fail with xgo 1.0.40:The workaround: