The post discusses the approach for testing Go code using the standard library, focusing on idiomatic practices and the use of functions like `t.Errorf` and `t.Fatalf` instead of assertion libraries like Testify. It highlights the benefits of writing clear, maintainable tests and contrasts this with the pitfalls of using

12m read timeFrom henvic.dev
Post cover image
Table of contents
Optimizing for reading vs. optimizing for writingOn t.FailNow() and testify/requireHelper functions vs. assertion functionComparing full structuresCan we do worse?Closing thoughts
1 Comment

Sort: