MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / mockExit

Function mockExit

mob_test.go:2073–2084  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2071}
2072
2073func 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
2086func resetExit() {
2087 Exit = originalExitFunction

Calls

no outgoing calls

Tested by

no test coverage detected