Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct { // Factory returns a function which constructs loggers for the container // specified in info. Each call to the returned function must yield a // distinct logger instance which can read back logs written by earlier // instances. Factory func(*testing.T, logger.Info) func(*testing.T) logger.Logger }
Reader tests that a logger.LogReader implementation behaves as it should.
func (Reader) TestConcurrent ¶
TestConcurrent tests the Logger and its LogReader implementation for race conditions when logging from multiple goroutines concurrently.
func (Reader) TestFollow ¶
TestFollow tests the LogReader's follow implementation.
The LogReader is expected to be able to follow an arbitrary number of messages at a high rate with no dropped messages.
Click to show internal directories.
Click to hide internal directories.