Documentation ¶
Overview ¶
Package logtest provides utilities for logging testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Messages = map[log.Level]string{ log.Emergency: "Emergency test message", log.Alert: "Alert test message", log.Critical: "Critical test message", log.Error: "Error test message", log.Warning: "Warning test message", log.Notice: "Notice test message", log.Info: "Info test message", log.Debug: "Debug test message", }
Messages is a map of log messages.
Functions ¶
func AssertContains ¶
AssertContains returns true if a buffer contains a line containing message.
func AssertLineCount ¶
AssertLineCount returns the number of log line a buffer contains.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.