Versions in this module Expand all Collapse all v0 v0.7.0 Jan 24, 2022 Changes in this version + const OneMegabyte + var ErrFixed = errors.New("error") + func AssertFilesNoLargerThan(t *testing.T, dir string, fileMaxSize int64) + func Close(t *testing.T, c io.Closer) + func MustTime(rfc3339 string) time.Time + func OpenLogReader(t *testing.T, options ...log.OpenReaderOption) log.Reader + func OpenLogWithWriter(t TestingT, options ...log.OpenWriterOption) (*log.Log, *log.Writer) + func OpenLogWriter(t TestingT, options ...log.OpenWriterOption) *log.Writer + func OpenReader(t TestingT, l *log.Log, options ...log.OpenReaderOption) log.Reader + func TempDir(t TestingT) string + func WriteEntry(t *testing.T, writer *log.Writer, sizeInBytes int64) time.Time + type Async struct + func RunAsync(f func()) Async + func (a *Async) WaitOrFailAfter(t *testing.T, timeout time.Duration) + type Clock struct + CurrentTime *time.Time + func (c *Clock) MoveForward(d time.Duration) + func (c *Clock) MoveForwardOneHour() + func (c *Clock) Now() time.Time + type Entry struct + Data []byte + Time time.Time + func ReadAll(t *testing.T, l *log.Log, options ...log.OpenReaderOption) []Entry + type TestingT interface + Cleanup func(func()) + Errorf func(format string, args ...interface{}) + FailNow func() + Helper func()