Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/uber-go/zap
/ Unstub
Method
Unstub
internal/exit/exit.go:59–61 ·
view source on GitHub ↗
Unstub restores the previous exit function.
()
Source
from the content-addressed store, hash-verified
57
58
// Unstub restores the previous exit function.
59
func
(se *StubbedExit) Unstub() {
60
_exit = se.prev
61
}
62
63
func
(se *StubbedExit) exit(code int) {
64
se.Exited = true
Callers
4
TestNewStdLogAtFatal
Function · 0.80
TestRedirectStdLogAtFatal
Function · 0.80
TestLoggerFatalOnNoop
Function · 0.80
WithStub
Function · 0.80
Calls
no outgoing calls
Tested by
3
TestNewStdLogAtFatal
Function · 0.64
TestRedirectStdLogAtFatal
Function · 0.64
TestLoggerFatalOnNoop
Function · 0.64