mockery
mockery copied to clipboard
Unable to generate interface type from another interface
Description
Hi, I wanted to write some mock for my interface :
type ResponseLessUseCase[M any] interface {
Execute(message *M) *errors.Error
}
type SendEmailVerificationUseCaseInterface ResponseLessUseCase[usermessages.SendEmailVerificationMessage]
But only the mock for ResponseLessUseCase was created, maybe I miss something ?
Mockery Version
v2.43.2
Golang Version
v1.22.3
Installation Method
- [ ] Binary Distribution
- [ ] Docker
- [ ] brew
- [x] go install
- [ ] Other: [specify]
Steps to Reproduce
- Install go & mockery last versions
- Write a golang file that include a generic interface and another interface that is typed as your generic interface
- Run mockery
Expected Behavior
A mock for the interface that inherit the generic one
Actual Behavior
Only the mock of the generic interface