matryer / moq

Interface mocking tool for go generate
http://bit.ly/meetmoq
MIT License
1.96k stars 126 forks source link

Error while re-generate mock #207

Open spolischook opened 1 year ago

spolischook commented 1 year ago

I have a mock generated by Moq. When I try to run

go generate ./...

I have got an error like:

couldn't load source package: ... cannot use &MockBooking{} (value of type MockBooking) as BookingIface value in variable declaration: MockBooking does not implement BookingIface (missing method UpdateIBooking)

And it's quite expected as I've just added a new method in BookingIface.
Is this behavior expected by Moq?