Closed imosquera closed 10 years ago
When I use mocktest the generated struct is missing an inner field causing some structs to no longer satisfy their interfaces.
for instance
type Bar struct { }
func(b Bar)MyMethod() {}
type Foo struct { Bar }
type Barer interface{ MyMethod() }
when the struct code is generated it's missing Bar such that it looks like the following:
Bar
I just realized this actually doesn't matter now that I have the "-exclude" flag so I can use mockgen to generate mocks again and use mocktest together again. I'll go ahead and close this one.
When I use mocktest the generated struct is missing an inner field causing some structs to no longer satisfy their interfaces.
for instance
type Bar struct { }
func(b Bar)MyMethod() {}
type Foo struct { Bar }
type Barer interface{ MyMethod() }
when the struct code is generated it's missing
Bar
such that it looks like the following:type Foo struct { Bar }