Documentation ¶
Index ¶
- type Allocator
- func (_m *Allocator) EXPECT() *Allocator_Expecter
- func (_m *Allocator) GenerateTSO(count uint32) (uint64, error)
- func (_m *Allocator) GetLastSavedTime() time.Time
- func (_m *Allocator) Initialize() error
- func (_m *Allocator) Reset()
- func (_m *Allocator) SetTSO(_a0 uint64) error
- func (_m *Allocator) UpdateTSO() error
- type Allocator_Expecter
- func (_e *Allocator_Expecter) GenerateTSO(count interface{}) *Allocator_GenerateTSO_Call
- func (_e *Allocator_Expecter) GetLastSavedTime() *Allocator_GetLastSavedTime_Call
- func (_e *Allocator_Expecter) Initialize() *Allocator_Initialize_Call
- func (_e *Allocator_Expecter) Reset() *Allocator_Reset_Call
- func (_e *Allocator_Expecter) SetTSO(_a0 interface{}) *Allocator_SetTSO_Call
- func (_e *Allocator_Expecter) UpdateTSO() *Allocator_UpdateTSO_Call
- type Allocator_GenerateTSO_Call
- func (_c *Allocator_GenerateTSO_Call) Return(_a0 uint64, _a1 error) *Allocator_GenerateTSO_Call
- func (_c *Allocator_GenerateTSO_Call) Run(run func(count uint32)) *Allocator_GenerateTSO_Call
- func (_c *Allocator_GenerateTSO_Call) RunAndReturn(run func(uint32) (uint64, error)) *Allocator_GenerateTSO_Call
- type Allocator_GetLastSavedTime_Call
- func (_c *Allocator_GetLastSavedTime_Call) Return(_a0 time.Time) *Allocator_GetLastSavedTime_Call
- func (_c *Allocator_GetLastSavedTime_Call) Run(run func()) *Allocator_GetLastSavedTime_Call
- func (_c *Allocator_GetLastSavedTime_Call) RunAndReturn(run func() time.Time) *Allocator_GetLastSavedTime_Call
- type Allocator_Initialize_Call
- type Allocator_Reset_Call
- type Allocator_SetTSO_Call
- type Allocator_UpdateTSO_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allocator ¶
Allocator is an autogenerated mock type for the Allocator type
func NewAllocator ¶
NewAllocator creates a new instance of Allocator. 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 (*Allocator) EXPECT ¶
func (_m *Allocator) EXPECT() *Allocator_Expecter
func (*Allocator) GenerateTSO ¶
GenerateTSO provides a mock function with given fields: count
func (*Allocator) GetLastSavedTime ¶
GetLastSavedTime provides a mock function with given fields:
func (*Allocator) Initialize ¶
Initialize provides a mock function with given fields:
func (*Allocator) Reset ¶
func (_m *Allocator) Reset()
Reset provides a mock function with given fields:
type Allocator_Expecter ¶
type Allocator_Expecter struct {
// contains filtered or unexported fields
}
func (*Allocator_Expecter) GenerateTSO ¶
func (_e *Allocator_Expecter) GenerateTSO(count interface{}) *Allocator_GenerateTSO_Call
GenerateTSO is a helper method to define mock.On call
- count uint32
func (*Allocator_Expecter) GetLastSavedTime ¶
func (_e *Allocator_Expecter) GetLastSavedTime() *Allocator_GetLastSavedTime_Call
GetLastSavedTime is a helper method to define mock.On call
func (*Allocator_Expecter) Initialize ¶
func (_e *Allocator_Expecter) Initialize() *Allocator_Initialize_Call
Initialize is a helper method to define mock.On call
func (*Allocator_Expecter) Reset ¶
func (_e *Allocator_Expecter) Reset() *Allocator_Reset_Call
Reset is a helper method to define mock.On call
func (*Allocator_Expecter) SetTSO ¶
func (_e *Allocator_Expecter) SetTSO(_a0 interface{}) *Allocator_SetTSO_Call
SetTSO is a helper method to define mock.On call
- _a0 uint64
func (*Allocator_Expecter) UpdateTSO ¶
func (_e *Allocator_Expecter) UpdateTSO() *Allocator_UpdateTSO_Call
UpdateTSO is a helper method to define mock.On call
type Allocator_GenerateTSO_Call ¶
Allocator_GenerateTSO_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateTSO'
func (*Allocator_GenerateTSO_Call) Return ¶
func (_c *Allocator_GenerateTSO_Call) Return(_a0 uint64, _a1 error) *Allocator_GenerateTSO_Call
func (*Allocator_GenerateTSO_Call) Run ¶
func (_c *Allocator_GenerateTSO_Call) Run(run func(count uint32)) *Allocator_GenerateTSO_Call
func (*Allocator_GenerateTSO_Call) RunAndReturn ¶
func (_c *Allocator_GenerateTSO_Call) RunAndReturn(run func(uint32) (uint64, error)) *Allocator_GenerateTSO_Call
type Allocator_GetLastSavedTime_Call ¶
Allocator_GetLastSavedTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastSavedTime'
func (*Allocator_GetLastSavedTime_Call) Return ¶
func (_c *Allocator_GetLastSavedTime_Call) Return(_a0 time.Time) *Allocator_GetLastSavedTime_Call
func (*Allocator_GetLastSavedTime_Call) Run ¶
func (_c *Allocator_GetLastSavedTime_Call) Run(run func()) *Allocator_GetLastSavedTime_Call
func (*Allocator_GetLastSavedTime_Call) RunAndReturn ¶
func (_c *Allocator_GetLastSavedTime_Call) RunAndReturn(run func() time.Time) *Allocator_GetLastSavedTime_Call
type Allocator_Initialize_Call ¶
Allocator_Initialize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Initialize'
func (*Allocator_Initialize_Call) Return ¶
func (_c *Allocator_Initialize_Call) Return(_a0 error) *Allocator_Initialize_Call
func (*Allocator_Initialize_Call) Run ¶
func (_c *Allocator_Initialize_Call) Run(run func()) *Allocator_Initialize_Call
func (*Allocator_Initialize_Call) RunAndReturn ¶
func (_c *Allocator_Initialize_Call) RunAndReturn(run func() error) *Allocator_Initialize_Call
type Allocator_Reset_Call ¶
Allocator_Reset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reset'
func (*Allocator_Reset_Call) Return ¶
func (_c *Allocator_Reset_Call) Return() *Allocator_Reset_Call
func (*Allocator_Reset_Call) Run ¶
func (_c *Allocator_Reset_Call) Run(run func()) *Allocator_Reset_Call
func (*Allocator_Reset_Call) RunAndReturn ¶
func (_c *Allocator_Reset_Call) RunAndReturn(run func()) *Allocator_Reset_Call
type Allocator_SetTSO_Call ¶
Allocator_SetTSO_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTSO'
func (*Allocator_SetTSO_Call) Return ¶
func (_c *Allocator_SetTSO_Call) Return(_a0 error) *Allocator_SetTSO_Call
func (*Allocator_SetTSO_Call) Run ¶
func (_c *Allocator_SetTSO_Call) Run(run func(_a0 uint64)) *Allocator_SetTSO_Call
func (*Allocator_SetTSO_Call) RunAndReturn ¶
func (_c *Allocator_SetTSO_Call) RunAndReturn(run func(uint64) error) *Allocator_SetTSO_Call
type Allocator_UpdateTSO_Call ¶
Allocator_UpdateTSO_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateTSO'
func (*Allocator_UpdateTSO_Call) Return ¶
func (_c *Allocator_UpdateTSO_Call) Return(_a0 error) *Allocator_UpdateTSO_Call
func (*Allocator_UpdateTSO_Call) Run ¶
func (_c *Allocator_UpdateTSO_Call) Run(run func()) *Allocator_UpdateTSO_Call
func (*Allocator_UpdateTSO_Call) RunAndReturn ¶
func (_c *Allocator_UpdateTSO_Call) RunAndReturn(run func() error) *Allocator_UpdateTSO_Call