Jim Popadak

Results 20 comments of Jim Popadak

I did end up doing that. But it would be really useful to just have some sort of fallback like inside of the IntelliJ plugin where we can set it...

Of course, this would only be a last resort sort of thing. Always want SSL to be verified by default.

Do you have any examples for how to do the workaround?

Any update on this now that API v2 is released? https://blog.golang.org/protobuf-apiv2

Thanks to a coworker, just found this option on `pegomock generate`: > --mock-name=MOCK-NAME Struct name of the generated mock; defaults to the interface prefixed with Mock Should be sufficient enough...

@petergtz This is possible. There are many locations in the Go code base that does this. You can pass in any object that satisfies the private interface. The idea is,...

I think this is a limitation of the language / reflection itself. Mainly because these are non-exported structures.

I accidentally closed it. I must have clicked the button when reading back through it. 🤦‍♂ Sorry!

I have not tried doing that, although that could work too. In my case, there were only 2 methods, one for each interface, so I created a stub struct with...

I honestly think the best route forward is the one you suggested here: https://github.com/petergtz/pegomock/issues/81#issuecomment-478749658 Might be useful in your documentation, but it's an obvious solution I didn't think about. 🙄