#615·mock

Unexported mock types

Author: affanshahidCreated Jan 19, 2022Updated Jun 7, 2023
Labelstype: feature request

Is it possible to generate unexported mock types? i.e input:

go
package user

type userRepo interface {}

output:

go
package user

type mockUserRepo struct {}

This way mocks are not exported by the package especially useful when mocking unexported interfaces