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)
OnFlushWithContext func(ctx context.Context) (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 ¶
Flush implements the sentry.Transport interface for the *Transport.
func (*Transport) FlushWithContext ¶ added in v0.32.15
FlushWithContext implements the sentry.Transport interface for the *Transport.
Click to show internal directories.
Click to hide internal directories.