Mocking Techniques for Go | Hatchpad Huddle

Join the software engineering community on October 28 at 9am for a virtual round table about Golang’s Mocking Techniques.

Kyle Yost, a Software Engineer at CB Insights, has been working with Go throughout his career. His team emphasizes testing so they can have confidence in the code they ship. While third-party tools have some benefits, Kyle found that Go provides all the tools they need to achieve mocking and accomplish their unit tests. Kyle shared his insights in this hatchpad insight article and will expand on the following points during this hatchpad huddle:

– Higher-Order Functions
– Monkey Patching
– Interface Substitution
– Embedding Interfaces
– Mocking out Downstream HTTP Calls with net/http/httptest


 

What is hatchpad?
Hatchpad is for individuals who enjoy building software products and want an online community where they can showcase projects, share ideas, find opportunities, and learn from experts. Join hundreds of other technical professionals who are part of the hatchpad community.

What is a hatchpad huddle?
A curated group of technical professionals who come together for a virtual roundtable to discuss a particular technical topic. Join a hatchpad huddle so you can:

  • Grow your technical skills
  • Meet others in the tech space who share common interests
  • Chat directly with technical thought leaders
  • Stay connected with your “huddle” after the event

Get insights when you need them

An original look at DC's high-growth startups, tech jobs, tech events, and more. Straight to your inbox.