()
| 2071 | } |
| 2072 | |
| 2073 | func mockExit() { |
| 2074 | originalExitFunction = Exit |
| 2075 | Exit = func(code int) { |
| 2076 | defer func() { |
| 2077 | if r := recover(); r != nil { |
| 2078 | fmt.Printf("exit(%d)\n", code) |
| 2079 | } |
| 2080 | }() |
| 2081 | |
| 2082 | panic(code) |
| 2083 | } |
| 2084 | } |
| 2085 | |
| 2086 | func resetExit() { |
| 2087 | Exit = originalExitFunction |
no outgoing calls
no test coverage detected