1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
// Code generated by MockGen. DO NOT EDIT.
// Source: git.tizen.org/tools/boruta/matcher (interfaces: JobsManager)
package matcher
import (
boruta "git.tizen.org/tools/boruta"
workers "git.tizen.org/tools/boruta/workers"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockJobsManager is a mock of JobsManager interface
type MockJobsManager struct {
ctrl *gomock.Controller
recorder *MockJobsManagerMockRecorder
}
// MockJobsManagerMockRecorder is the mock recorder for MockJobsManager
type MockJobsManagerMockRecorder struct {
mock *MockJobsManager
}
// NewMockJobsManager creates a new mock instance
func NewMockJobsManager(ctrl *gomock.Controller) *MockJobsManager {
mock := &MockJobsManager{ctrl: ctrl}
mock.recorder = &MockJobsManagerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockJobsManager) EXPECT() *MockJobsManagerMockRecorder {
return m.recorder
}
// Create mocks base method
func (m *MockJobsManager) Create(arg0 boruta.ReqID, arg1 boruta.WorkerUUID) error {
ret := m.ctrl.Call(m, "Create", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Create indicates an expected call of Create
func (mr *MockJobsManagerMockRecorder) Create(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockJobsManager)(nil).Create), arg0, arg1)
}
// Finish mocks base method
func (m *MockJobsManager) Finish(arg0 boruta.WorkerUUID) error {
ret := m.ctrl.Call(m, "Finish", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Finish indicates an expected call of Finish
func (mr *MockJobsManagerMockRecorder) Finish(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Finish", reflect.TypeOf((*MockJobsManager)(nil).Finish), arg0)
}
// Get mocks base method
func (m *MockJobsManager) Get(arg0 boruta.WorkerUUID) (*workers.Job, error) {
ret := m.ctrl.Call(m, "Get", arg0)
ret0, _ := ret[0].(*workers.Job)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get
func (mr *MockJobsManagerMockRecorder) Get(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockJobsManager)(nil).Get), arg0)
}
|