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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSynchronizer

type MockSynchronizer struct {
	SyncAllCall                    func() error
	SynchronizeFeatureFlagsCall    func(ffChange *dtos.SplitChangeUpdate) error
	SynchronizeSegmentCall         func(segmentName string, till *int64) error
	StartPeriodicFetchingCall      func()
	StopPeriodicFetchingCall       func()
	StartPeriodicDataRecordingCall func()
	StopPeriodicDataRecordingCall  func()
	LocalKillCall                  func(string, string, int64)
	RefreshRatesCall               func() (time.Duration, time.Duration)
}

MockSynchronizer mock implementation

func (*MockSynchronizer) LocalKill

func (m *MockSynchronizer) LocalKill(name string, treatment string, cn int64)

LocalKill mock

func (*MockSynchronizer) RefreshRates

func (m *MockSynchronizer) RefreshRates() (time.Duration, time.Duration)

RefreshRates call

func (*MockSynchronizer) StartPeriodicDataRecording

func (m *MockSynchronizer) StartPeriodicDataRecording()

StartPeriodicDataRecording mock

func (*MockSynchronizer) StartPeriodicFetching

func (m *MockSynchronizer) StartPeriodicFetching()

StartPeriodicFetching mock

func (*MockSynchronizer) StopPeriodicDataRecording

func (m *MockSynchronizer) StopPeriodicDataRecording()

StopPeriodicDataRecording mock

func (*MockSynchronizer) StopPeriodicFetching

func (m *MockSynchronizer) StopPeriodicFetching()

StopPeriodicFetching mock

func (*MockSynchronizer) SyncAll

func (m *MockSynchronizer) SyncAll() error

SyncAll mock

func (*MockSynchronizer) SynchronizeFeatureFlags

func (m *MockSynchronizer) SynchronizeFeatureFlags(ffChange *dtos.SplitChangeUpdate) error

RefreshRates call

func (*MockSynchronizer) SynchronizeSegment

func (m *MockSynchronizer) SynchronizeSegment(segmentName string, till *int64) error

SynchronizeSegment mock

Jump to

Keyboard shortcuts

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