mocktso

package
v0.0.0-...-34e0b2d Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 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 Allocator

type Allocator struct {
	mock.Mock
}

Allocator is an autogenerated mock type for the Allocator type

func NewAllocator

func NewAllocator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Allocator

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

func (_m *Allocator) GenerateTSO(count uint32) (uint64, error)

GenerateTSO provides a mock function with given fields: count

func (*Allocator) GetLastSavedTime

func (_m *Allocator) GetLastSavedTime() time.Time

GetLastSavedTime provides a mock function with given fields:

func (*Allocator) Initialize

func (_m *Allocator) Initialize() error

Initialize provides a mock function with given fields:

func (*Allocator) Reset

func (_m *Allocator) Reset()

Reset provides a mock function with given fields:

func (*Allocator) SetTSO

func (_m *Allocator) SetTSO(_a0 uint64) error

SetTSO provides a mock function with given fields: _a0

func (*Allocator) UpdateTSO

func (_m *Allocator) UpdateTSO() error

UpdateTSO 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

Initialize is a helper method to define mock.On call

func (*Allocator_Expecter) Reset

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

UpdateTSO is a helper method to define mock.On call

type Allocator_GenerateTSO_Call

type Allocator_GenerateTSO_Call struct {
	*mock.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 (*Allocator_GenerateTSO_Call) Run

func (*Allocator_GenerateTSO_Call) RunAndReturn

type Allocator_GetLastSavedTime_Call

type Allocator_GetLastSavedTime_Call struct {
	*mock.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 (*Allocator_GetLastSavedTime_Call) Run

func (*Allocator_GetLastSavedTime_Call) RunAndReturn

type Allocator_Initialize_Call

type Allocator_Initialize_Call struct {
	*mock.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 (*Allocator_Initialize_Call) Run

func (*Allocator_Initialize_Call) RunAndReturn

func (_c *Allocator_Initialize_Call) RunAndReturn(run func() error) *Allocator_Initialize_Call

type Allocator_Reset_Call

type Allocator_Reset_Call struct {
	*mock.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 (*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

type Allocator_SetTSO_Call struct {
	*mock.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 (*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

type Allocator_UpdateTSO_Call struct {
	*mock.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 (*Allocator_UpdateTSO_Call) Run

func (*Allocator_UpdateTSO_Call) RunAndReturn

func (_c *Allocator_UpdateTSO_Call) RunAndReturn(run func() error) *Allocator_UpdateTSO_Call

Jump to

Keyboard shortcuts

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