Organizing Table Tests in Go
5 min readJan 8, 2022
--
Table tests are one of the approaches to how to organize multiple use-cases for a single test. In this tutorial, I want to share my approach on how I organize table tests and structs used for it.
Standard Approach
Most IDEs can generate table-driven tests automatically. For this only thing, you need is to navigate to the function and use a command to generate the tests. In VS…