test

package
v1.32.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2020 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomFields added in v1.31.0

func RandomFields() log.Fields

func RandomKey added in v1.31.0

func RandomKey() string

func RandomValue added in v1.31.0

func RandomValue() interface{}

Types

type Logger

type Logger struct {
	*Serializer
	log.Logger
}

func NewLogger

func NewLogger() *Logger

type Serializer

type Serializer struct {
	SerializedFields []log.Fields
}

func NewSerializer

func NewSerializer() *Serializer

func (*Serializer) AssertDebug

func (s *Serializer) AssertDebug(message string, containsFields ...log.Fields)

func (*Serializer) AssertDebugExpression

func (s *Serializer) AssertDebugExpression(messageExpression *regexp.Regexp, containsFields ...log.Fields)

func (*Serializer) AssertError

func (s *Serializer) AssertError(message string, containsFields ...log.Fields)

func (*Serializer) AssertErrorExpression

func (s *Serializer) AssertErrorExpression(messageExpression *regexp.Regexp, containsFields ...log.Fields)

func (*Serializer) AssertInfo

func (s *Serializer) AssertInfo(message string, containsFields ...log.Fields)

func (*Serializer) AssertInfoExpression

func (s *Serializer) AssertInfoExpression(messageExpression *regexp.Regexp, containsFields ...log.Fields)

func (*Serializer) AssertLog

func (s *Serializer) AssertLog(level log.Level, message string, containsFields ...log.Fields)

func (*Serializer) AssertLogExpression

func (s *Serializer) AssertLogExpression(level log.Level, messageExpression *regexp.Regexp, containsFields ...log.Fields)

func (*Serializer) AssertWarn

func (s *Serializer) AssertWarn(message string, containsFields ...log.Fields)

func (*Serializer) AssertWarnExpression

func (s *Serializer) AssertWarnExpression(messageExpression *regexp.Regexp, containsFields ...log.Fields)

func (*Serializer) Serialize

func (s *Serializer) Serialize(fields log.Fields) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL