Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
closeparen
on Aug 26, 2020
|
parent
|
context
|
favorite
| on:
Is TDD Dead? (2014)
In Go, it turns testing into a game of “how do I make this stdlib function return an error”?
noisem4ker
on Aug 26, 2020
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: