test

package
v0.0.0-...-febee65 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestHook

func NewTestHook(serviceName string) *test.Hook

Types

type LoggingAssert

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

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