Documentation ¶
Overview ¶
Package testing offers some handy methods to display check and cross symbols with colors in test logs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Colors = [...]int{ log.DebugLevel: gray, log.InfoLevel: blue, log.WarnLevel: yellow, log.ErrorLevel: red, log.FatalLevel: red, }
Colors mapping.
View Source
var Strings = [...]string{ log.DebugLevel: "DEBUG", log.InfoLevel: "INFO", log.WarnLevel: "WARN", log.ErrorLevel: "ERROR", log.FatalLevel: "FATAL", }
Strings mapping.
Functions ¶
func GetRedisClient ¶
GetRedisClient returns a redis client that can be used for testing
Types ¶
type LogHandler ¶
LogHandler implementation.
Click to show internal directories.
Click to hide internal directories.