MCPcopy
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.
59func (se *StubbedExit) Unstub() {
60 _exit = se.prev
61}
62
63func (se *StubbedExit) exit(code int) {
64 se.Exited = true

Callers 4

TestNewStdLogAtFatalFunction · 0.80
TestLoggerFatalOnNoopFunction · 0.80
WithStubFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestNewStdLogAtFatalFunction · 0.64
TestLoggerFatalOnNoopFunction · 0.64