sentrytest

package
v0.32.6 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Unlicense Imports: 3 Imported by: 0

Documentation

Overview

Package sentrytest contains fake implementations of interfaces for the Sentry module.

TODO(a.garipov): Add more utilities or rename to fakesentry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

type Transport struct {
	OnClose     func()
	OnConfigure func(opts sentry.ClientOptions)
	OnFlush     func(timeout time.Duration) (ok bool)
	OnSendEvent func(e *sentry.Event)
}

Transport is a sentry.Transport implementation for tests.

func NewTransport

func NewTransport() (tst *Transport)

NewTransport returns a new *Transport all methods of which panic.

func (*Transport) Close added in v0.31.1

func (t *Transport) Close()

Close implements the sentry.Transport interface for the *Transport.

func (*Transport) Configure

func (t *Transport) Configure(opts sentry.ClientOptions)

Configure implements the sentry.Transport interface for the *Transport.

func (*Transport) Flush

func (t *Transport) Flush(timeout time.Duration) (ok bool)

Flush implements the sentry.Transport interface for the *Transport.

func (*Transport) SendEvent

func (t *Transport) SendEvent(e *sentry.Event)

SendEvent implements the sentry.Transport interface for the *Transport.

Jump to

Keyboard shortcuts

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