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
Table of contents
Using cmp.Diff to compare resultsNew behaviour? New test.Test casesAdding cases one at a time1 Comment
Sort: