This post discusses the importance of test-driven development (TDD) in Go. It highlights the benefits of writing tests first and how it helps in creating self-testing code. It also explains the process of verifying the correctness of a test.

8m read timeFrom bitfieldconsulting.com
Post cover image
Table of contents
Self-testing codeThe adventure beginsVerifying the testRunning tests with go test

Sort: