Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while re-generate mock #207

Open
spolischook opened this issue Sep 7, 2023 · 0 comments
Open

Error while re-generate mock #207

spolischook opened this issue Sep 7, 2023 · 0 comments

Comments

@spolischook
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant