How to test os.exit scenarios in Go How to test os.exit scenarios in Go go go

How to test os.exit scenarios in Go