Documentation
¶
Index ¶
- func NewTestHook(serviceName string) *test.Hook
- type LoggingAssert
- func (a *LoggingAssert) HasError(expectedErr error) *LoggingAssert
- func (a *LoggingAssert) HasField(key string, value interface{}) *LoggingAssert
- func (a *LoggingAssert) HasFields(fields map[string]interface{}) *LoggingAssert
- func (a *LoggingAssert) HasMonitoringEvent(expectedEventName, expectedTID, expectedContentType string) *LoggingAssert
- func (a *LoggingAssert) HasTime(expectedTime time.Time) *LoggingAssert
- func (a *LoggingAssert) HasTransactionID(expectedTID string) *LoggingAssert
- func (a *LoggingAssert) HasUUID(expectedUUID string) *LoggingAssert
- func (a *LoggingAssert) HasValidFlag(expectedFlag bool) *LoggingAssert
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestHook ¶
Types ¶
type LoggingAssert ¶
type LoggingAssert struct {
// contains filtered or unexported fields
}
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
Click to show internal directories.
Click to hide internal directories.