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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
// Code generated by MockGen. DO NOT EDIT.
// Source: git.tizen.org/tools/boruta (interfaces: Workers)
// Package mocks is a generated GoMock package.
package mocks
import (
boruta "git.tizen.org/tools/boruta"
gomock "github.com/golang/mock/gomock"
reflect "reflect"
)
// MockWorkers is a mock of Workers interface
type MockWorkers struct {
ctrl *gomock.Controller
recorder *MockWorkersMockRecorder
}
// MockWorkersMockRecorder is the mock recorder for MockWorkers
type MockWorkersMockRecorder struct {
mock *MockWorkers
}
// NewMockWorkers creates a new mock instance
func NewMockWorkers(ctrl *gomock.Controller) *MockWorkers {
mock := &MockWorkers{ctrl: ctrl}
mock.recorder = &MockWorkersMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockWorkers) EXPECT() *MockWorkersMockRecorder {
return m.recorder
}
// Deregister mocks base method
func (m *MockWorkers) Deregister(arg0 boruta.WorkerUUID) error {
ret := m.ctrl.Call(m, "Deregister", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Deregister indicates an expected call of Deregister
func (mr *MockWorkersMockRecorder) Deregister(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deregister", reflect.TypeOf((*MockWorkers)(nil).Deregister), arg0)
}
// GetWorkerInfo mocks base method
func (m *MockWorkers) GetWorkerInfo(arg0 boruta.WorkerUUID) (boruta.WorkerInfo, error) {
ret := m.ctrl.Call(m, "GetWorkerInfo", arg0)
ret0, _ := ret[0].(boruta.WorkerInfo)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetWorkerInfo indicates an expected call of GetWorkerInfo
func (mr *MockWorkersMockRecorder) GetWorkerInfo(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetWorkerInfo", reflect.TypeOf((*MockWorkers)(nil).GetWorkerInfo), arg0)
}
// ListWorkers mocks base method
func (m *MockWorkers) ListWorkers(arg0 boruta.Groups, arg1 boruta.Capabilities) ([]boruta.WorkerInfo, error) {
ret := m.ctrl.Call(m, "ListWorkers", arg0, arg1)
ret0, _ := ret[0].([]boruta.WorkerInfo)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListWorkers indicates an expected call of ListWorkers
func (mr *MockWorkersMockRecorder) ListWorkers(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListWorkers", reflect.TypeOf((*MockWorkers)(nil).ListWorkers), arg0, arg1)
}
// SetGroups mocks base method
func (m *MockWorkers) SetGroups(arg0 boruta.WorkerUUID, arg1 boruta.Groups) error {
ret := m.ctrl.Call(m, "SetGroups", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// SetGroups indicates an expected call of SetGroups
func (mr *MockWorkersMockRecorder) SetGroups(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetGroups", reflect.TypeOf((*MockWorkers)(nil).SetGroups), arg0, arg1)
}
// SetState mocks base method
func (m *MockWorkers) SetState(arg0 boruta.WorkerUUID, arg1 boruta.WorkerState) error {
ret := m.ctrl.Call(m, "SetState", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// SetState indicates an expected call of SetState
func (mr *MockWorkersMockRecorder) SetState(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetState", reflect.TypeOf((*MockWorkers)(nil).SetState), arg0, arg1)
}
|