Versions in this module Expand all Collapse all v0 v0.20.2 Sep 6, 2021 Changes in this version + var ErrFakeWriter = errors.New("naza.fake: a fake writer error") + func Os_Exit(code int) + func Time_Now() time.Time + func WithFakeTimeNow(n func() time.Time, fn func()) + func WithRecover(f func()) + type ExitResult struct + ExitCode int + HasExit bool + func WithFakeOsExit(fn func()) ExitResult + type Writer struct + B bytes.Buffer + func NewWriter(t WriterType) *Writer + func (w *Writer) SetSpecificType(ts map[uint32]WriterType) + func (w *Writer) Write(b []byte) (int, error) + type WriterType uint8 + const WriterTypeDoNothing + const WriterTypeIntoBuffer + const WriterTypeReturnError