Skip to content

Glossary: Software Design Patterns in Go

Table-driven test

Also written: table-driven tests

A Go test that lists inputs and expected outputs in a slice of structs and loops over them. `TestSameTotalsAsBefore` has one row each for Bloom, Ana and Cy.

Where the book teaches it

Related terms

go testCharacterization test