mocks

package
v5.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalSyncMock

type LocalSyncMock struct {
	SyncAllCall                    func() error
	SynchronizeFeatureFlagsCall    func(ffChange *dtos.SplitChangeUpdate) error
	LocalKillCall                  func(splitName string, defaultTreatment string, changeNumber int64)
	SynchronizeSegmentCall         func(segmentName string, till *int64) error
	StartPeriodicFetchingCall      func()
	StopPeriodicFetchingCall       func()
	StartPeriodicDataRecordingCall func()
	StopPeriodicDataRecordingCall  func()
}

func (*LocalSyncMock) LocalKill

func (l *LocalSyncMock) LocalKill(splitName string, defaultTreatment string, changeNumber int64)

func (*LocalSyncMock) StartPeriodicDataRecording

func (l *LocalSyncMock) StartPeriodicDataRecording()

func (*LocalSyncMock) StartPeriodicFetching

func (l *LocalSyncMock) StartPeriodicFetching()

func (*LocalSyncMock) StopPeriodicDataRecording

func (l *LocalSyncMock) StopPeriodicDataRecording()

func (*LocalSyncMock) StopPeriodicFetching

func (l *LocalSyncMock) StopPeriodicFetching()

func (*LocalSyncMock) SyncAll

func (l *LocalSyncMock) SyncAll() error

func (*LocalSyncMock) SynchronizeFeatureFlags

func (l *LocalSyncMock) SynchronizeFeatureFlags(ffChange *dtos.SplitChangeUpdate) error

func (*LocalSyncMock) SynchronizeSegment

func (l *LocalSyncMock) SynchronizeSegment(segmentName string, till *int64) error

type MockManager

type MockManager struct {
	StartCall        func() error
	StopCall         func() error
	StartWorkersCall func()
	StopWorkersCall  func()
	IsRunningCall    func() bool
	NextRefreshCall  func() time.Time
}

MockManager mocking struct for push

func (MockManager) IsRunning

func (m MockManager) IsRunning() bool

IsRunning mock

func (MockManager) NextRefresh

func (m MockManager) NextRefresh() time.Time

NextRefresh call

func (MockManager) Start

func (m MockManager) Start() error

Start mock

func (MockManager) StartWorkers

func (m MockManager) StartWorkers()

StartWorkers mock

func (MockManager) Stop

func (m MockManager) Stop() error

Stop mock

func (MockManager) StopWorkers

func (m MockManager) StopWorkers()

StopWorkers mock

type NotificationParserMock

type NotificationParserMock struct {
	ParseAndForwardCall func(m sse.IncomingMessage) (*int64, error)
}

func (*NotificationParserMock) ParseAndForward

func (n *NotificationParserMock) ParseAndForward(m sse.IncomingMessage) (*int64, error)

Jump to

Keyboard shortcuts

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