News for hackers. Stuff that matters.
Re:Is TDD Dead? (2014) by closeparen on Wednesday August 26, 2020 @01:51PM (#24285117)
In Go, it turns testing into a game of “how do I make this stdlib function return an error”?
Re:Is TDD Dead? (2014) by noisem4ker on Wednesday August 26, 2020 @02:57PM (#24285928)
Error handling taking up 50% of the code is definitely a problem with Go itself. For each meaningful line, there's an accompanying "if err != nil {return err}", so if you want coverage you end up testing this kind of boilerplate.