--- tags: - testing --- https://go.dev/wiki/TableDrivenTests --- [[Testing Golang programs]] [[Test fixture]] --- Sign when to use: copy and pasting tests. Similar to what we do with phpunit/prophecy : providing a dataProvider. In go we can just define a slice of structs or a map and loop over it in our test function.