This repository was archived by the owner on Jun 27, 2023. It is now read-only.
This repository was archived by the owner on Jun 27, 2023. It is now read-only.
Source mode fails with embedded interfaces #178
Closed
Description
Here are my test files:
github.com/anyuser/test/test1.go:
package test
type A interface {
Method1()
}
github.com/anyuser/test/test2.go:
package test
type B interface {
A
}
Here's generation:
mockgen -source test2.go -destination test2_mocks.go -package test -aux_files test=test1.go
Error result:
Loading input failed: test2.go:4:2: unknown embedded interface A
Metadata
Metadata
Assignees
Labels
No labels