The best mock in the world: examining mock generation tools in Go
summary
A comparison of mock-generation tools for Go: Mockery, Gomock, and Minimock. The talk evaluates each tool on practical examples, discussing pros and cons, ease of use, and best practices for writing unit tests with mocks.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:01Mock tools overview
- 4:36Mock speed comparison
- 5:59Type safety in mocks
- 10:03Validation and failures
- 13:35Call order requirements
- 17:34Cache interface mocking
- 21:54Async test challenges
- 26:29Optimizing table tests
- 33:17Tool recommendations
- 35:31Q&A
related talks
50mThe Best Mock in the World: Examining Tools for Generating Mocks in Go
07mHow to Mock Fellow Gophers While Avoiding HR
48mClimbing the Testing Pyramid: From Real Service to Interface Mocks in Go
04mMocking in Go: Using interfaces for fun and profits
52mPlease don’t mock me
36mTo Mock or Not to Mock
23mMocking of mocks. A deep dive into the mock module
27mReal World Mocking in Swift
