package
0.0.0-20240513120632-16ee337943b8
Repository: https://github.com/sunzip/zap.git
Documentation: pkg.go.dev

# Functions

Initialize checks the environment and alters the timeout scale accordingly.
NewMockClock builds a new mock clock using the current actual time as the initial time.
Sleep scales the sleep duration by $TEST_TIMEOUT_SCALE.
Timeout scales the provided duration by $TEST_TIMEOUT_SCALE.

# Structs

Buffer is an implementation of zapcore.WriteSyncer that sends all writes to a bytes.Buffer.
A Discarder sends all writes to io.Discard.
FailWriter is a WriteSyncer that always returns an error on writes.
MockClock is a fake source of time.
ShortWriter is a WriteSyncer whose write method never fails, but nevertheless fails to the last byte of the input.
A Syncer is a spy for the Sync portion of zapcore.WriteSyncer.