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
And this the code generated by moq resolves the type alias and produces:
package main
import (
"cloud.google.com/go/internal/pubsub"// ERROR CANNOT COMPILE BECAUSE OF INTERNAL IMPORT"context""sync"
)
// Ensure, that ReceiverMock does implement Receiver.// If this is not the case, regenerate this file with moq.var_Receiver=&ReceiverMock{}
...
Ideally moq would generate the code using the non-internal import inferred from the type alias.
The text was updated successfully, but these errors were encountered:
Moq resolves type aliases which can lead to non-compilable code.
For example:
In the google pubsub package Message is declared as:
And this the code generated by
moq
resolves the type alias and produces:Ideally
moq
would generate the code using the non-internal import inferred from the type alias.The text was updated successfully, but these errors were encountered: