The author writes table-driven tests in Go projects using the standard library’s testing package together with a slice of structs, without introducing any testing framework. The reason is that this approach is simple, intuitive, easy to read, and unlikely to lead to overengineering.
Source:MediumLevel Up Coding · Read the original article
Leave a Reply