mocks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMockedSentryClientOptions

func GetMockedSentryClientOptions() *sentry.ClientOptions

func GetMockedSentryHub

func GetMockedSentryHub() *sentry.Hub

Types

type MockedLogger

type MockedLogger struct {
	Buffer bytes.Buffer
}

func (*MockedLogger) GetLogger

func (l *MockedLogger) GetLogger() *log.Logger

type TransportMock

type TransportMock struct {
	// contains filtered or unexported fields
}

func (*TransportMock) Configure

func (t *TransportMock) Configure(_ sentry.ClientOptions)

func (*TransportMock) Events

func (t *TransportMock) Events() []*sentry.Event

func (*TransportMock) Flush

func (t *TransportMock) Flush(_ time.Duration) bool

func (*TransportMock) SendEvent

func (t *TransportMock) SendEvent(event *sentry.Event)

Jump to

Keyboard shortcuts

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