You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question:
What does the logic do in github.com/petergtz/pegomock/mockgen/mockgen.go function optionalPackageOf? I would like to submit a PR to implement this.
The text was updated successfully, but these errors were encountered:
Hi @jpopadak and sorry for the missing functionality :-(.
You're on the right track and your implementation above looks right. Check the file for more TODOs and you'll find more functions with switches where model.FuncType is not implemented yet. Once, all these are implemented, the errors should go away.
We are receiving this TODO while trying to generate some mocks.
Funny thing is, it works for a vararg version of this function, but not a slice version of it.
It works for this:
But does not work for this:
Question:
What does the logic do in
github.com/petergtz/pegomock/mockgen/mockgen.go
functionoptionalPackageOf
? I would like to submit a PR to implement this.The text was updated successfully, but these errors were encountered: