mock

package
v1.44.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventStore added in v1.42.0

func NewEventStore[T exporter.ExportableEvent]() exporter.EventStore[T]

Types

type Exporter

type Exporter struct {
	ExportedEvents    []exporter.ExportableEvent
	Err               error
	ExpectedNumberErr int
	CurrentNumberErr  int
	Bulk              bool
	// contains filtered or unexported fields
}

func (*Exporter) Export

func (m *Exporter) Export(
	_ context.Context,
	_ *fflog.FFLogger,
	events []exporter.ExportableEvent,
) error

func (*Exporter) GetExportedEvents

func (m *Exporter) GetExportedEvents() []exporter.ExportableEvent

func (*Exporter) IsBulk

func (m *Exporter) IsBulk() bool

type ExporterDeprecated added in v1.42.0

type ExporterDeprecated struct {
	ExportedEvents    []exporter.FeatureEvent
	Err               error
	ExpectedNumberErr int
	CurrentNumberErr  int
	Bulk              bool
	// contains filtered or unexported fields
}

ExporterDeprecated -----

func (*ExporterDeprecated) Export added in v1.42.0

func (m *ExporterDeprecated) Export(
	_ context.Context,
	_ *log.Logger,
	events []exporter.FeatureEvent,
) error

func (*ExporterDeprecated) GetExportedEvents added in v1.42.0

func (m *ExporterDeprecated) GetExportedEvents() []exporter.ExportableEvent

func (*ExporterDeprecated) IsBulk added in v1.42.0

func (m *ExporterDeprecated) IsBulk() bool

type ExporterDeprecatedV2 added in v1.44.0

type ExporterDeprecatedV2 struct {
	ExportedEvents    []exporter.FeatureEvent
	Err               error
	ExpectedNumberErr int
	CurrentNumberErr  int
	Bulk              bool
	// contains filtered or unexported fields
}

ExporterDeprecatedV2 -----

func (*ExporterDeprecatedV2) Export added in v1.44.0

func (*ExporterDeprecatedV2) GetExportedEvents added in v1.44.0

func (m *ExporterDeprecatedV2) GetExportedEvents() []exporter.ExportableEvent

func (*ExporterDeprecatedV2) IsBulk added in v1.44.0

func (m *ExporterDeprecatedV2) IsBulk() bool

type ExporterMock added in v1.42.0

type ExporterMock interface {
	exporter.CommonExporter
	GetExportedEvents() []exporter.ExportableEvent
}

type HTTP added in v0.26.0

type HTTP struct {
	Req           http.Request
	RateLimit     bool
	HasBeenCalled bool
	EndRatelimit  time.Time
}

func (*HTTP) Do added in v0.26.0

func (m *HTTP) Do(req *http.Request) (*http.Response, error)

type NotificationService added in v1.37.0

type NotificationService struct {
	NotifyCalls int
	CloseCalled bool
	// contains filtered or unexported fields
}

func (*NotificationService) Close added in v1.37.0

func (n *NotificationService) Close()

func (*NotificationService) GetNotifyCalls added in v1.37.0

func (n *NotificationService) GetNotifyCalls() int

func (*NotificationService) Notify added in v1.37.0

func (n *NotificationService) Notify(
	oldCache map[string]flag.Flag,
	newCache map[string]flag.Flag,
	log *fflog.FFLogger,
)

func (*NotificationService) WasCloseCalled added in v1.37.0

func (n *NotificationService) WasCloseCalled() bool

type Notifier added in v1.28.0

type Notifier struct {
	NotifyCalls int
	// contains filtered or unexported fields
}

func (*Notifier) GetNotifyCalls added in v1.37.0

func (n *Notifier) GetNotifyCalls() int

func (*Notifier) Notify added in v1.28.0

func (n *Notifier) Notify(cache notifier.DiffCache) error

type TrackingEventExporter added in v1.44.0

type TrackingEventExporter struct {
	ExportedEvents    []exporter.TrackingEvent
	Err               error
	ExpectedNumberErr int
	CurrentNumberErr  int
	Bulk              bool
	// contains filtered or unexported fields
}

func (*TrackingEventExporter) Export added in v1.44.0

func (*TrackingEventExporter) GetExportedEvents added in v1.44.0

func (m *TrackingEventExporter) GetExportedEvents() []exporter.ExportableEvent

func (*TrackingEventExporter) IsBulk added in v1.44.0

func (m *TrackingEventExporter) IsBulk() bool

Jump to

Keyboard shortcuts

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