testing – How to test os.exit scenarios in Go – Stack Overflowby Brian GosnellNovember 14, 2017 Source: testing – How to test os.exit scenarios in Go – Stack Overflow