How to test Go function containing log.Fatal() How to test Go function containing log.Fatal() go go

How to test Go function containing log.Fatal()