A deep dive into Test-Driven Development (TDD) in Go. The post illustrates the 'Shameless Green' approach in TDD, where the primary focus is on passing the test rather than writing perfect code. It explains how to validate and refine tests using the cmp.Diff function for better debugging and demonstrates the utility of

9m read timeFrom bitfieldconsulting.com
Post cover image
Table of contents
Using cmp.Diff to compare resultsNew behaviour? New test.Test casesAdding cases one at a time
1 Comment

Sort: