Video description
A reliable and comprehensive test suite for your applications isn’t a luxury anymore—it’s a requirement. This course is the second in a series of "Testing in Go" programs that teach you how to test your Go applications to make sure what you ship works the first time. This course focuses specifically on using interfaces and mocks to make your code more testable by injecting dependencies.
- Explore Go's interfaces as they relate to testing
- Understand how to make your code more testable by injecting dependencies
- Discover how to use Go's interfaces for dependency injection
- Create mocks of your external dependencies and use them to make your unit tests more self-contained
- Learn how to keep your code testable by organizing your packages by dependency
Brian Ketelsen is the founder of the Gopher Academy, the parent group that manages GopherCon, the Go programming language conference. A prolific open source enthusiast, he has contributed to many of Go's largest projects, including Docker, Kubernetes, etcd, SkyDNS, Kong, Go-Kit, and Goa. Brian holds a bachelor’s degree in computer science from American InterContinental University.
Product information
- Title: Using Interfaces and Mocks in Go
- Author(s):
- Release date: July 2017
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491992005
You might also like
video
Create a Web Application Scaffold Generator in Go
Step into the role of a platform engineer and build a command-line application for generating a …
article
Run Llama-2 Models Locally with llama.cpp
Llama is Meta’s answer to the growing demand for LLMs. Unlike its well-known technological relative, ChatGPT, …
video
Managing Dependencies in Go
Almost all modern software projects use third-party dependencies to do their job. From version control systems …
article
Use Github Copilot for Prompt Engineering
Using GitHub Copilot can feel like magic. The tool automatically fills out entire blocks of code--but …