Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interfaces returning interfaces #5

Closed
jgraettinger opened this issue Jan 12, 2015 · 1 comment
Closed

Interfaces returning interfaces #5

jgraettinger opened this issue Jan 12, 2015 · 1 comment

Comments

@jgraettinger
Copy link

Hi,

A recent commit (I suspect fe07b98) appears to have broken mocks of interfaces which in turn return interfaces. Eg, given:

package interfaces

type B interface {
  Bar()
}
type A interface {
  Get() B
}

The generated mock for A now looks like:

package mocks

func (a *A) Get() B {
 // Note that B is mocks.B
 ...
}

where previously it was:

func (a *A) Get() interfaces.B {
 ...
}

Thanks for a useful tool.

@evanphx
Copy link
Member

evanphx commented Jan 12, 2015

Thanks @dademurphy for pointing this out so quickly so I could get it fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants