test

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggingAssert

type LoggingAssert struct {
	// contains filtered or unexported fields
}

LoggingAssert struct exposes convenient assert methods for UPP logger specific log entries.

func Assert

func Assert(t *testing.T, entry *logrus.Entry) *LoggingAssert

func (*LoggingAssert) HasError

func (a *LoggingAssert) HasError(expectedErr error) *LoggingAssert

func (*LoggingAssert) HasField

func (a *LoggingAssert) HasField(key string, value interface{}) *LoggingAssert

func (*LoggingAssert) HasFields

func (a *LoggingAssert) HasFields(fields map[string]interface{}) *LoggingAssert

func (*LoggingAssert) HasMonitoringEvent

func (a *LoggingAssert) HasMonitoringEvent(expectedEventName, expectedTID, expectedContentType string) *LoggingAssert

func (*LoggingAssert) HasTime

func (a *LoggingAssert) HasTime(expectedTime time.Time) *LoggingAssert

func (*LoggingAssert) HasTransactionID

func (a *LoggingAssert) HasTransactionID(expectedTID string) *LoggingAssert

func (*LoggingAssert) HasUUID

func (a *LoggingAssert) HasUUID(expectedUUID string) *LoggingAssert

func (*LoggingAssert) HasValidFlag

func (a *LoggingAssert) HasValidFlag(expectedFlag bool) *LoggingAssert

Jump to

Keyboard shortcuts

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