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)
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)
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)