Express related test-cases as data to keep tests readable and exhaustive, and compare the results using full-structure comparison.
Table-driven tests express each case as a row of data, keeping intent obvious and making it cheap to add cases.
Best Practices focused on Go. Idiomatic Go practices and patterns.
1 post
Express related test-cases as data to keep tests readable and exhaustive, and compare the results using full-structure comparison.
Table-driven tests express each case as a row of data, keeping intent obvious and making it cheap to add cases.