log

package
v0.0.0-...-37f2402 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAuditPayloads

func AssertAuditPayloads(t *testing.T, h *test.Hook, expected []*audit.Payload)

AssertAuditPayload compares the audit payloads in `h` with the given expected payloads

func AssertLoggingOutput

func AssertLoggingOutput(h *test.Hook, expected []map[string]types.GomegaMatcher) error

AssertLoggingOutput compares the logs on `h` with the expected entries in `expected`. It returns a slice of errors encountered, with a zero length if no assertions failed.

func New

func New() (*test.Hook, *logrus.Entry)

New creates a logging hook and entry suitable for passing to functions and asserting on.

func NewAudit

func NewAudit() (*test.Hook, *logrus.Entry)

NewAudit creates a logging hook and entry suitable for testing the IFXAudit feature.

Types

This section is empty.

Jump to

Keyboard shortcuts

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