Skip to content

Glossary: Go Basics

Table-driven test

Also written: table test, table-driven tests

A test that puts its cases in a slice of structs and loops over them. It includes the edges of each rule, such as $25 and $50 for shipping.

Where the book teaches it