Skip to content

Generated mock does not properly import dependent structs. #783

Answered by LandonTClipp
Tochemey asked this question in Q&A
Discussion options

You must be logged in to vote

You need to delete inpackage: True from all your config. This parameter tells mockery whether it should be importing your package-local types or not. You have informed it that you placed the mock in the same package that your types are defined, thus it believes it shouldn't import them.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@LandonTClipp
Comment options

@Tochemey
Comment options

@Tochemey
Comment options

@LandonTClipp
Comment options

Answer selected by Tochemey
@LandonTClipp
Comment options

@Tochemey
Comment options

@Tochemey
Comment options

@LandonTClipp
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants