3 ms·
> In Go you have to do this or your line/branch coverage will be abysmal. If you're writing tests to improve coverage numbers then maybe you're motivation is w
by jopsen 5y ago
> In Go you have to do this or your line/branch coverage will be abysmal.
If you're writing tests to improve coverage numbers then maybe you're motivation is wrong.
In most languages with automatic exception propagation you never know what exceptions can be thrown. Is it any different from not testing?
- closeparen 5y agoIt would be interesting to know what errors we might get, but unit testing an error return branch doesn't tell us that. It tells us that any non-nil error will be returned.
- deleted 5y ago[deleted]