mocks

package
v1.16.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 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 AutoRefreshCache

type AutoRefreshCache struct {
	mock.Mock
}

AutoRefreshCache is an autogenerated mock type for the AutoRefreshCache type

func NewAutoRefreshCache added in v1.15.1

func NewAutoRefreshCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *AutoRefreshCache

NewAutoRefreshCache creates a new instance of AutoRefreshCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AutoRefreshCache) EXPECT added in v1.15.1

func (*AutoRefreshCache) Get

func (_m *AutoRefreshCache) Get(id string) utils.CacheItem

Get provides a mock function with given fields: id

func (*AutoRefreshCache) GetOrCreate

func (_m *AutoRefreshCache) GetOrCreate(item utils.CacheItem) (utils.CacheItem, error)

GetOrCreate provides a mock function with given fields: item

func (*AutoRefreshCache) Start

func (_m *AutoRefreshCache) Start(ctx context.Context)

Start provides a mock function with given fields: ctx

type AutoRefreshCache_Expecter added in v1.15.1

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

func (*AutoRefreshCache_Expecter) Get added in v1.15.1

func (_e *AutoRefreshCache_Expecter) Get(id interface{}) *AutoRefreshCache_Get_Call

Get is a helper method to define mock.On call

  • id string

func (*AutoRefreshCache_Expecter) GetOrCreate added in v1.15.1

func (_e *AutoRefreshCache_Expecter) GetOrCreate(item interface{}) *AutoRefreshCache_GetOrCreate_Call

GetOrCreate is a helper method to define mock.On call

  • item utils.CacheItem

func (*AutoRefreshCache_Expecter) Start added in v1.15.1

func (_e *AutoRefreshCache_Expecter) Start(ctx interface{}) *AutoRefreshCache_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

type AutoRefreshCache_GetOrCreate_Call added in v1.15.1

type AutoRefreshCache_GetOrCreate_Call struct {
	*mock.Call
}

AutoRefreshCache_GetOrCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrCreate'

func (*AutoRefreshCache_GetOrCreate_Call) Return added in v1.15.1

func (*AutoRefreshCache_GetOrCreate_Call) Run added in v1.15.1

func (*AutoRefreshCache_GetOrCreate_Call) RunAndReturn added in v1.15.1

type AutoRefreshCache_Get_Call added in v1.15.1

type AutoRefreshCache_Get_Call struct {
	*mock.Call
}

AutoRefreshCache_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*AutoRefreshCache_Get_Call) Return added in v1.15.1

func (*AutoRefreshCache_Get_Call) Run added in v1.15.1

func (*AutoRefreshCache_Get_Call) RunAndReturn added in v1.15.1

type AutoRefreshCache_Start_Call added in v1.15.1

type AutoRefreshCache_Start_Call struct {
	*mock.Call
}

AutoRefreshCache_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*AutoRefreshCache_Start_Call) Return added in v1.15.1

func (*AutoRefreshCache_Start_Call) Run added in v1.15.1

func (*AutoRefreshCache_Start_Call) RunAndReturn added in v1.15.1

type CacheItem

type CacheItem struct {
	mock.Mock
}

CacheItem is an autogenerated mock type for the CacheItem type

func NewCacheItem added in v1.15.1

func NewCacheItem(t interface {
	mock.TestingT
	Cleanup(func())
}) *CacheItem

NewCacheItem creates a new instance of CacheItem. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CacheItem) EXPECT added in v1.15.1

func (_m *CacheItem) EXPECT() *CacheItem_Expecter

func (*CacheItem) ID

func (_m *CacheItem) ID() string

ID provides a mock function with no fields

type CacheItem_Expecter added in v1.15.1

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

func (*CacheItem_Expecter) ID added in v1.15.1

ID is a helper method to define mock.On call

type CacheItem_ID_Call added in v1.15.1

type CacheItem_ID_Call struct {
	*mock.Call
}

CacheItem_ID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ID'

func (*CacheItem_ID_Call) Return added in v1.15.1

func (_c *CacheItem_ID_Call) Return(_a0 string) *CacheItem_ID_Call

func (*CacheItem_ID_Call) Run added in v1.15.1

func (_c *CacheItem_ID_Call) Run(run func()) *CacheItem_ID_Call

func (*CacheItem_ID_Call) RunAndReturn added in v1.15.1

func (_c *CacheItem_ID_Call) RunAndReturn(run func() string) *CacheItem_ID_Call

type CacheSyncItem added in v1.15.1

type CacheSyncItem struct {
	mock.Mock
}

CacheSyncItem is an autogenerated mock type for the CacheSyncItem type

func NewCacheSyncItem added in v1.15.1

func NewCacheSyncItem(t interface {
	mock.TestingT
	Cleanup(func())
}) *CacheSyncItem

NewCacheSyncItem creates a new instance of CacheSyncItem. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*CacheSyncItem) EXPECT added in v1.15.1

func (_m *CacheSyncItem) EXPECT() *CacheSyncItem_Expecter

func (*CacheSyncItem) Execute added in v1.15.1

Execute provides a mock function with given fields: ctx, obj

type CacheSyncItem_Execute_Call added in v1.15.1

type CacheSyncItem_Execute_Call struct {
	*mock.Call
}

CacheSyncItem_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'

func (*CacheSyncItem_Execute_Call) Return added in v1.15.1

func (*CacheSyncItem_Execute_Call) Run added in v1.15.1

func (*CacheSyncItem_Execute_Call) RunAndReturn added in v1.15.1

type CacheSyncItem_Expecter added in v1.15.1

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

func (*CacheSyncItem_Expecter) Execute added in v1.15.1

func (_e *CacheSyncItem_Expecter) Execute(ctx interface{}, obj interface{}) *CacheSyncItem_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • obj utils.CacheItem

type RateLimiter

type RateLimiter struct {
	mock.Mock
}

RateLimiter is an autogenerated mock type for the RateLimiter type

func NewRateLimiter added in v1.15.1

func NewRateLimiter(t interface {
	mock.TestingT
	Cleanup(func())
}) *RateLimiter

NewRateLimiter creates a new instance of RateLimiter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RateLimiter) EXPECT added in v1.15.1

func (_m *RateLimiter) EXPECT() *RateLimiter_Expecter

func (*RateLimiter) Wait

func (_m *RateLimiter) Wait(ctx context.Context) error

Wait provides a mock function with given fields: ctx

type RateLimiter_Expecter added in v1.15.1

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

func (*RateLimiter_Expecter) Wait added in v1.15.1

func (_e *RateLimiter_Expecter) Wait(ctx interface{}) *RateLimiter_Wait_Call

Wait is a helper method to define mock.On call

  • ctx context.Context

type RateLimiter_Wait_Call added in v1.15.1

type RateLimiter_Wait_Call struct {
	*mock.Call
}

RateLimiter_Wait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Wait'

func (*RateLimiter_Wait_Call) Return added in v1.15.1

func (*RateLimiter_Wait_Call) Run added in v1.15.1

func (*RateLimiter_Wait_Call) RunAndReturn added in v1.15.1

func (_c *RateLimiter_Wait_Call) RunAndReturn(run func(context.Context) error) *RateLimiter_Wait_Call

type Sequencer

type Sequencer struct {
	mock.Mock
}

Sequencer is an autogenerated mock type for the Sequencer type

func NewSequencer added in v1.15.1

func NewSequencer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Sequencer

NewSequencer creates a new instance of Sequencer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Sequencer) EXPECT added in v1.15.1

func (_m *Sequencer) EXPECT() *Sequencer_Expecter

func (*Sequencer) GetCur

func (_m *Sequencer) GetCur() uint64

GetCur provides a mock function with no fields

func (*Sequencer) GetNext

func (_m *Sequencer) GetNext() uint64

GetNext provides a mock function with no fields

type Sequencer_Expecter added in v1.15.1

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

func (*Sequencer_Expecter) GetCur added in v1.15.1

GetCur is a helper method to define mock.On call

func (*Sequencer_Expecter) GetNext added in v1.15.1

GetNext is a helper method to define mock.On call

type Sequencer_GetCur_Call added in v1.15.1

type Sequencer_GetCur_Call struct {
	*mock.Call
}

Sequencer_GetCur_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCur'

func (*Sequencer_GetCur_Call) Return added in v1.15.1

func (*Sequencer_GetCur_Call) Run added in v1.15.1

func (_c *Sequencer_GetCur_Call) Run(run func()) *Sequencer_GetCur_Call

func (*Sequencer_GetCur_Call) RunAndReturn added in v1.15.1

func (_c *Sequencer_GetCur_Call) RunAndReturn(run func() uint64) *Sequencer_GetCur_Call

type Sequencer_GetNext_Call added in v1.15.1

type Sequencer_GetNext_Call struct {
	*mock.Call
}

Sequencer_GetNext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNext'

func (*Sequencer_GetNext_Call) Return added in v1.15.1

func (*Sequencer_GetNext_Call) Run added in v1.15.1

func (_c *Sequencer_GetNext_Call) Run(run func()) *Sequencer_GetNext_Call

func (*Sequencer_GetNext_Call) RunAndReturn added in v1.15.1

func (_c *Sequencer_GetNext_Call) RunAndReturn(run func() uint64) *Sequencer_GetNext_Call

Jump to

Keyboard shortcuts

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