MCPcopy
hub / github.com/uber-go/zap / With

Function With

internal/exit/exit.go:31–33  ·  internal/exit/exit.go::With

With terminates the process by calling os.Exit(code). If the package is stubbed, it instead records a call in the testing spy.

(code int)

Source from the content-addressed store, hash-verified

29// With terminates the process by calling os.Exit(code). If the package is
30// stubbed, it instead records a call in the testing spy.
31func With(code int) {
32 _exit(code)
33}
34
35// A StubbedExit is a testing fake for os.Exit.
36type StubbedExit struct {

Callers 2

OnWriteMethod · 0.92
TestStubFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestStubFunction · 0.74