Re:Error handling in Go web apps shouldn't be so awkward
by bananapub on Wednesday January 10, 2024 @02:42AM
(#38937369)
what tool do you use to verify that every possible path your program, including all errors paths in dependencies, is executed?
[ Parent
| on HN ]
Re:Error handling in Go web apps shouldn't be so awkward
by randomdata on Wednesday January 10, 2024 @11:37AM
(#38940422)
If you are referring to test coverage, the standard Go toolchain includes that out of the box.
But in this case you don't need to know about what paths have been executed. It will be obvious that an error path was not handled when your program does not adhere to function that is documented.