package exit

Import Path
	go.uber.org/zap/internal/exit (on go.dev)

Dependency Relation
	imports one package, and imported by one package

Involved Source Files Package exit provides stubs so that unit tests can exercise code that calls os.Exit(1).
Package-Level Type Names (only one, which is exported)
/* sort exporteds by: | */
A StubbedExit is a testing fake for os.Exit. Code int Exited bool Unstub restores the previous exit function. func Stub() *StubbedExit func WithStub(f func()) *StubbedExit
Package-Level Functions (total 3, all are exported)
Stub substitutes a fake for the call to os.Exit(1).
With terminates the process by calling os.Exit(code). If the package is stubbed, it instead records a call in the testing spy.
WithStub runs the supplied function with Exit stubbed. It returns the stub used, so that users can test whether the process would have crashed.
Package-Level Variables (only one, which is unexported)