summaryrefslogtreecommitdiff
path: root/mocks/mock_workers.go
diff options
context:
space:
mode:
authorMaciej Wereski <m.wereski@partner.samsung.com>2017-10-10 12:30:54 +0200
committerMaciej Wereski <m.wereski@partner.samsung.com>2018-06-05 12:48:28 +0200
commitcab1fb00dcacdf5d58a6fc0cda9003939c289ce0 (patch)
treee5bcb3ceeddfd86414a53128b0aad52eba13b7a2 /mocks/mock_workers.go
parent9082c51b1863b2af78c458a6584112a521c10a58 (diff)
downloadboruta-cab1fb00dcacdf5d58a6fc0cda9003939c289ce0.tar.gz
boruta-cab1fb00dcacdf5d58a6fc0cda9003939c289ce0.tar.bz2
boruta-cab1fb00dcacdf5d58a6fc0cda9003939c289ce0.zip
HTTP API: Add Superviser API skeleton
Currently only Requests and handlers of 2 Workers functions were present, although HTTP API should cover full Workers API. Tests will use mocked Workers and Superviser interfaces, so generation line was added to boruta.go. Change-Id: Id6d82a8c6e61121a2e75d5c90445edf35b2268a5 Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Diffstat (limited to 'mocks/mock_workers.go')
-rw-r--r--mocks/mock_workers.go49
1 files changed, 48 insertions, 1 deletions
diff --git a/mocks/mock_workers.go b/mocks/mock_workers.go
index 590e252..d64b584 100644
--- a/mocks/mock_workers.go
+++ b/mocks/mock_workers.go
@@ -1,5 +1,5 @@
// Code generated by MockGen. DO NOT EDIT.
-// Source: git.tizen.org/tools/boruta (interfaces: Workers)
+// Source: git.tizen.org/tools/boruta (interfaces: Workers,Superviser)
// Package mocks is a generated GoMock package.
package mocks
@@ -94,3 +94,50 @@ func (m *MockWorkers) SetState(arg0 boruta.WorkerUUID, arg1 boruta.WorkerState)
func (mr *MockWorkersMockRecorder) SetState(arg0, arg1 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetState", reflect.TypeOf((*MockWorkers)(nil).SetState), arg0, arg1)
}
+
+// MockSuperviser is a mock of Superviser interface
+type MockSuperviser struct {
+ ctrl *gomock.Controller
+ recorder *MockSuperviserMockRecorder
+}
+
+// MockSuperviserMockRecorder is the mock recorder for MockSuperviser
+type MockSuperviserMockRecorder struct {
+ mock *MockSuperviser
+}
+
+// NewMockSuperviser creates a new mock instance
+func NewMockSuperviser(ctrl *gomock.Controller) *MockSuperviser {
+ mock := &MockSuperviser{ctrl: ctrl}
+ mock.recorder = &MockSuperviserMockRecorder{mock}
+ return mock
+}
+
+// EXPECT returns an object that allows the caller to indicate expected use
+func (m *MockSuperviser) EXPECT() *MockSuperviserMockRecorder {
+ return m.recorder
+}
+
+// Register mocks base method
+func (m *MockSuperviser) Register(arg0 boruta.Capabilities) error {
+ ret := m.ctrl.Call(m, "Register", arg0)
+ ret0, _ := ret[0].(error)
+ return ret0
+}
+
+// Register indicates an expected call of Register
+func (mr *MockSuperviserMockRecorder) Register(arg0 interface{}) *gomock.Call {
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Register", reflect.TypeOf((*MockSuperviser)(nil).Register), arg0)
+}
+
+// SetFail mocks base method
+func (m *MockSuperviser) SetFail(arg0 boruta.WorkerUUID, arg1 string) error {
+ ret := m.ctrl.Call(m, "SetFail", arg0, arg1)
+ ret0, _ := ret[0].(error)
+ return ret0
+}
+
+// SetFail indicates an expected call of SetFail
+func (mr *MockSuperviserMockRecorder) SetFail(arg0, arg1 interface{}) *gomock.Call {
+ return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetFail", reflect.TypeOf((*MockSuperviser)(nil).SetFail), arg0, arg1)
+}