June 2017
Intermediate to advanced
400 pages
10h 32m
English
This recipe will demonstrate the process to write a table-driven test, collect test coverage, and improve it. It will also make use of the github.com/cweill/gotests package to generate tests. If you've been downloading the test code for other chapters, these should look very familiar. Using a combination of this recipe and the previous two, you should be able to achieve 100% test coverage in all cases with some work.
Read now
Unlock full access