Welcome back to The Engineering Coach! After building our own Stubs, Spies, and Mocks from scratch, we're ready for the real-world efficiency gain. In this episode, we're refactoring the code from our previous series to introduce GoMock, the powerful mocking framework for Golang.
You'll see exactly how a framework like GoMock streamlines your TDD workflow. We'll replace lines of boilerplate code with concise, framework-generated calls, making your tests faster to write, easier to read, and more expressive. This video is the essential step for anyone who wants to write professional, production-ready tests in Golang.
The code for this episode can be found on GitHub: https://github.com/the-engineering-co...
Previous in the Series:
If you missed the foundational videos where we coded our own test doubles, check out the full playlist to see how the underlying principles work:
👉 Watch the full Golang Test Doubles playlist here: • Test Doubles for Test Driven Development (...
Let's Connect
For more software engineering tutorials and coaching, subscribe to The Engineering Coach on YouTube. You can also connect with me on Bluesky or Mastodon.
Mastodon: https://mastodon.social/@braddle
Bluesky: https://bsky.app/profile/braddle1.bsk...
LinkedIn: / mark-bradley-engineering-coach
#GoMock #Golang #GoLang #MockingFramework #TDD #Refactoring #TheEngineeringCoach