Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogCapture ¶
type LogCapture struct {
// contains filtered or unexported fields
}
LogCapture allows testing code to query log output.
func (*LogCapture) AssertHasEntry ¶
func (c *LogCapture) AssertHasEntry(t *testing.T, msg string)
AssertHasEntry checks if there is a log entry with the given string.
func (*LogCapture) Entries ¶
func (c *LogCapture) Entries() []string
Entries returns all captures log entries.
Click to show internal directories.
Click to hide internal directories.