Settings

Theme

Show HN: Moqueries – Lock-free interface and function mocks for Go

github.com

15 points by myshkin5 4 years ago · 1 comment

Reader

myshkin5OP 4 years ago

Hi HN,

The primary goal (lock-free mocks for Go) is right there in the title but after converting lots of code, I've found the biggest payoff has been from generating more accurate code. Gomock's recorder uses a lot of `interface{}` functions. Moqueries always uses the actual type from the interface or function type.

I've documented the internal structures used by the generated code here: https://github.com/myshkin5/moqueries/tree/main/docs/anatomy...

Let me know what you think.

Thanks! Dwayne

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection