DEV Community

Discussion on: Demonstrating TDD (Test-driven development) in Go

Collapse
 
individualit profile image
Artur Neumann

I think the loop is the way to do it in go see github.com/golang/go/wiki/TableDri...

Basically what you are doing in to multiple test runs by calling t.Run()