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

Imports for inline structs #129

Merged

Conversation

chrusty
Copy link

@chrusty chrusty commented Jul 4, 2019

I recently encountered some odd behaviour when generating mocks for interfaces making use of anonymous / inline structs (as mentioned in this issue #128).

This PR aims to address that issue.

  • Updated the generator to recurse through struct fields and add imports for their types
  • Added a text fixture for this kind of interface

@joefitzgerald joefitzgerald merged commit 48e3c3c into maxbrunsfeld:master Jul 8, 2019
@joefitzgerald
Copy link
Collaborator

Thanks for the contribution @chrusty!

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

Successfully merging this pull request may close these issues.

2 participants