mocks

package
v5.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthClient

type MockAuthClient struct {
	AuthenticateCall func() (*dtos.Token, error)
}

MockAuthClient mocked implementation of auth

func (MockAuthClient) Authenticate

func (m MockAuthClient) Authenticate() (*dtos.Token, error)

Authenticate mock

type MockEventRecorder

type MockEventRecorder struct {
	RecordCall func(events []dtos.EventDTO, metadata dtos.Metadata) error
}

MockEventRecorder mocked implementation of event recorder

func (MockEventRecorder) Record

func (m MockEventRecorder) Record(events []dtos.EventDTO, metadata dtos.Metadata) error

Record mock

type MockImpressionRecorder

type MockImpressionRecorder struct {
	RecordCall                 func(impressions []dtos.ImpressionsDTO, metadata dtos.Metadata, extraHeaders map[string]string) error
	RecordImpressionsCountCall func(pf dtos.ImpressionsCountDTO, metadata dtos.Metadata) error
}

MockImpressionRecorder mocked implementation of impression recorder

func (MockImpressionRecorder) Record

func (m MockImpressionRecorder) Record(impressions []dtos.ImpressionsDTO, metadata dtos.Metadata, extraHeaders map[string]string) error

Record mock

func (MockImpressionRecorder) RecordImpressionsCount

func (m MockImpressionRecorder) RecordImpressionsCount(pf dtos.ImpressionsCountDTO, metadata dtos.Metadata) error

RecordImpressionsCount mock

type MockSegmentFetcher

type MockSegmentFetcher struct {
	FetchCall func(name string, changeNumber int64, fetchOptions *service.FetchOptions) (*dtos.SegmentChangesDTO, error)
}

MockSegmentFetcher mocked implementation of segment fetcher

func (MockSegmentFetcher) Fetch

func (m MockSegmentFetcher) Fetch(name string, changeNumber int64, fetchOptions *service.FetchOptions) (*dtos.SegmentChangesDTO, error)

Fetch mock

type MockSplitFetcher

type MockSplitFetcher struct {
	FetchCall func(changeNumber int64, fetchOptions *service.FetchOptions) (*dtos.SplitChangesDTO, error)
}

MockSplitFetcher mocked implementation of split fetcher

func (MockSplitFetcher) Fetch

func (m MockSplitFetcher) Fetch(changeNumber int64, fetchOptions *service.FetchOptions) (*dtos.SplitChangesDTO, error)

Fetch mock

type MockTelemetryRecorder

type MockTelemetryRecorder struct {
	RecordConfigCall     func(config dtos.Config, metadata dtos.Metadata) error
	RecordStatsCall      func(stats dtos.Stats, metadata dtos.Metadata) error
	RecordUniqueKeysCall func(uniques dtos.Uniques, metadata dtos.Metadata) error
}

MockTelemetryRecorder mocked implementation of telemetry recorder

func (MockTelemetryRecorder) RecordConfig

func (m MockTelemetryRecorder) RecordConfig(config dtos.Config, metadata dtos.Metadata) error

RecordConfig mock

func (MockTelemetryRecorder) RecordStats

func (m MockTelemetryRecorder) RecordStats(stats dtos.Stats, metadata dtos.Metadata) error

RecordStats mock

func (MockTelemetryRecorder) RecordUniqueKeys

func (m MockTelemetryRecorder) RecordUniqueKeys(uniques dtos.Uniques, metadata dtos.Metadata) error

RecordUniqueKeys mock

Jump to

Keyboard shortcuts

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