testhelpers

package
v0.0.0-...-5115dcd Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: Apache-2.0, BSD-3-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertProtoBufferMessageContains

func AssertProtoBufferMessageContains(t *testing.T, expectedMessage string, actual []byte)

func AssertProtoBufferMessageEquals

func AssertProtoBufferMessageEquals(t *testing.T, expectedMessage string, actual []byte)

func MarshalledDrainedLogMessage

func MarshalledDrainedLogMessage(t *testing.T, messageString string, appId string, drainUrls ...string) []byte

func MarshalledDrainedNonWardenLogMessage

func MarshalledDrainedNonWardenLogMessage(t *testing.T, messageString string, appId string, drainUrls ...string) []byte

func MarshalledErrorLogMessage

func MarshalledErrorLogMessage(t *testing.T, messageString string, appId, sourceId string) []byte

func MarshalledLogEnvelope

func MarshalledLogEnvelope(t *testing.T, unmarshalledMessage *logmessage.LogMessage, secret string) []byte

func MarshalledLogEnvelopeForMessage

func MarshalledLogEnvelopeForMessage(t *testing.T, msg, appName, secret string, drainUrls ...string) []byte

func MarshalledLogMessage

func MarshalledLogMessage(t *testing.T, messageString string, appId string) []byte

func NewErrMessageWithSourceId

func NewErrMessageWithSourceId(t *testing.T, messageString, appId, sourceId string) *logmessage.Message

func NewLogMessage

func NewLogMessage(messageString, appId string) *logmessage.LogMessage

func NewMessage

func NewMessage(t *testing.T, messageString, appId string) *logmessage.Message

func NewMessageFromLogMessage

func NewMessageFromLogMessage(t *testing.T, logMessage *logmessage.LogMessage) *logmessage.Message

func NewMessageWithError

func NewMessageWithError(messageString, appId string) (*logmessage.Message, error)

func NewMessageWithSourceId

func NewMessageWithSourceId(t *testing.T, messageString, appId, sourceId string) *logmessage.Message

func NewMessageWithSyslogDrain

func NewMessageWithSyslogDrain(t *testing.T, messageString, appId string, syslogDrains ...string) *logmessage.Message

Types

This section is empty.

Jump to

Keyboard shortcuts

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