mocks

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

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

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

func (*AutoRefreshCache_Expecter) Get

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

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

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

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

func (*AutoRefreshCache_GetOrCreate_Call) Run

func (*AutoRefreshCache_GetOrCreate_Call) RunAndReturn

type AutoRefreshCache_Get_Call

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

func (*AutoRefreshCache_Get_Call) Run

func (*AutoRefreshCache_Get_Call) RunAndReturn

type AutoRefreshCache_Start_Call

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

func (*AutoRefreshCache_Start_Call) Run

func (*AutoRefreshCache_Start_Call) RunAndReturn

type CacheItem

type CacheItem struct {
	mock.Mock
}

CacheItem is an autogenerated mock type for the CacheItem type

func NewCacheItem

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

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

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

func (*CacheItem_Expecter) ID

ID is a helper method to define mock.On call

type CacheItem_ID_Call

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

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

func (*CacheItem_ID_Call) Run

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

func (*CacheItem_ID_Call) RunAndReturn

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

type CacheSyncItem

type CacheSyncItem struct {
	mock.Mock
}

CacheSyncItem is an autogenerated mock type for the CacheSyncItem type

func NewCacheSyncItem

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

func (_m *CacheSyncItem) EXPECT() *CacheSyncItem_Expecter

func (*CacheSyncItem) Execute

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

type CacheSyncItem_Execute_Call

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

func (*CacheSyncItem_Execute_Call) Run

func (*CacheSyncItem_Execute_Call) RunAndReturn

type CacheSyncItem_Expecter

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

func (*CacheSyncItem_Expecter) Execute

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

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

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

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

func (*RateLimiter_Expecter) Wait

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

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

func (*RateLimiter_Wait_Call) Run

func (*RateLimiter_Wait_Call) RunAndReturn

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

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

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

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

func (*Sequencer_Expecter) GetCur

GetCur is a helper method to define mock.On call

func (*Sequencer_Expecter) GetNext

GetNext is a helper method to define mock.On call

type Sequencer_GetCur_Call

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

func (*Sequencer_GetCur_Call) Run

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

func (*Sequencer_GetCur_Call) RunAndReturn

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

type Sequencer_GetNext_Call

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

func (*Sequencer_GetNext_Call) Run

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

func (*Sequencer_GetNext_Call) RunAndReturn

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