// GetLastSavedTime provides a mock function with given fields:
func(_m*Allocator)GetLastSavedTime()time.Time{
ret:=_m.Called()
varr0time.Time
ifrf,ok:=ret.Get(0).(func()time.Time);ok{
r0=rf()
}else{
r0=ret.Get(0).(time.Time)
}
returnr0
}
// Initialize provides a mock function with given fields:
func(_m*Allocator)Initialize()error{
ret:=_m.Called()
varr0error
ifrf,ok:=ret.Get(0).(func()error);ok{
r0=rf()
}else{
r0=ret.Error(0)
}
returnr0
}
// Reset provides a mock function with given fields:
func(_m*Allocator)Reset(){
_m.Called()
}
// SetTSO provides a mock function with given fields: _a0
func(_m*Allocator)SetTSO(_a0uint64)error{
ret:=_m.Called(_a0)
varr0error
ifrf,ok:=ret.Get(0).(func(uint64)error);ok{
r0=rf(_a0)
}else{
r0=ret.Error(0)
}
returnr0
}
// UpdateTSO provides a mock function with given fields:
func(_m*Allocator)UpdateTSO()error{
ret:=_m.Called()
varr0error
ifrf,ok:=ret.Get(0).(func()error);ok{
r0=rf()
}else{
r0=ret.Error(0)
}
returnr0
}
typemockConstructorTestingTNewAllocatorinterface{
mock.TestingT
Cleanup(func())
}
// 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.