Using Interfaces and Mocks in Go
MP4 | Video: AVC 1920x1080 | Audio: AAC 48KHz 2ch | Duration: 16M | 545 MB
Genre: eLearning | Language: English
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
发布日期: 2017-08-07