2020-04-29 10:11:13 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: spooler.go
|
|
|
|
|
|
|
|
// Package mock is a generated GoMock package.
|
|
|
|
package mock
|
|
|
|
|
|
|
|
import (
|
|
|
|
reflect "reflect"
|
|
|
|
time "time"
|
2022-04-19 06:26:12 +00:00
|
|
|
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
2020-04-29 10:11:13 +00:00
|
|
|
)
|
|
|
|
|
2022-04-19 06:26:12 +00:00
|
|
|
// MockLocker is a mock of Locker interface.
|
2020-04-29 10:11:13 +00:00
|
|
|
type MockLocker struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockLockerMockRecorder
|
|
|
|
}
|
|
|
|
|
2022-04-19 06:26:12 +00:00
|
|
|
// MockLockerMockRecorder is the mock recorder for MockLocker.
|
2020-04-29 10:11:13 +00:00
|
|
|
type MockLockerMockRecorder struct {
|
|
|
|
mock *MockLocker
|
|
|
|
}
|
|
|
|
|
2022-04-19 06:26:12 +00:00
|
|
|
// NewMockLocker creates a new mock instance.
|
2020-04-29 10:11:13 +00:00
|
|
|
func NewMockLocker(ctrl *gomock.Controller) *MockLocker {
|
|
|
|
mock := &MockLocker{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockLockerMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2022-04-19 06:26:12 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2020-04-29 10:11:13 +00:00
|
|
|
func (m *MockLocker) EXPECT() *MockLockerMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2022-04-19 06:26:12 +00:00
|
|
|
// Renew mocks base method.
|
|
|
|
func (m *MockLocker) Renew(lockerID, viewModel, instanceID string, waitTime time.Duration) error {
|
2020-04-29 10:11:13 +00:00
|
|
|
m.ctrl.T.Helper()
|
2022-04-19 06:26:12 +00:00
|
|
|
ret := m.ctrl.Call(m, "Renew", lockerID, viewModel, instanceID, waitTime)
|
2020-04-29 10:11:13 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2022-04-19 06:26:12 +00:00
|
|
|
// Renew indicates an expected call of Renew.
|
|
|
|
func (mr *MockLockerMockRecorder) Renew(lockerID, viewModel, instanceID, waitTime interface{}) *gomock.Call {
|
2020-04-29 10:11:13 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2022-04-19 06:26:12 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Renew", reflect.TypeOf((*MockLocker)(nil).Renew), lockerID, viewModel, instanceID, waitTime)
|
2020-04-29 10:11:13 +00:00
|
|
|
}
|