Enable coverage for failure cases

This commit is contained in:
Arthur Barr
2017-11-22 17:20:57 +00:00
parent f492171276
commit 4200d9df1b
3 changed files with 45 additions and 1 deletions

View File

@@ -179,9 +179,11 @@ func doMain() error {
return nil
}
var osExit = os.Exit
func main() {
err := doMain()
if err != nil {
os.Exit(1)
osExit(1)
}
}