From a6293dbfaa27bcd40ad9f03c2258f8c26ede85a1 Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Wed, 29 Nov 2017 16:59:22 +0100 Subject: [PATCH] Add generated mock of DryadJobRunner Command used: mockgen -source=manager/manager.go \ -destination=manager/mock_dryad_job_runner_test.go \ -package manager Change-Id: I015e79a3db12db02e2423bc6ce05cf4e9dfb6555 Signed-off-by: Aleksander Mistewicz --- manager/mock_dryad_job_runner_test.go | 69 +++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 manager/mock_dryad_job_runner_test.go diff --git a/manager/mock_dryad_job_runner_test.go b/manager/mock_dryad_job_runner_test.go new file mode 100644 index 0000000..b433a84 --- /dev/null +++ b/manager/mock_dryad_job_runner_test.go @@ -0,0 +1,69 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: manager/manager.go + +// Package manager is a generated GoMock package. +package manager + +import ( + gomock "github.com/golang/mock/gomock" + reflect "reflect" +) + +// MockDryadJobRunner is a mock of DryadJobRunner interface +type MockDryadJobRunner struct { + ctrl *gomock.Controller + recorder *MockDryadJobRunnerMockRecorder +} + +// MockDryadJobRunnerMockRecorder is the mock recorder for MockDryadJobRunner +type MockDryadJobRunnerMockRecorder struct { + mock *MockDryadJobRunner +} + +// NewMockDryadJobRunner creates a new mock instance +func NewMockDryadJobRunner(ctrl *gomock.Controller) *MockDryadJobRunner { + mock := &MockDryadJobRunner{ctrl: ctrl} + mock.recorder = &MockDryadJobRunnerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use +func (m *MockDryadJobRunner) EXPECT() *MockDryadJobRunnerMockRecorder { + return m.recorder +} + +// Deploy mocks base method +func (m *MockDryadJobRunner) Deploy() error { + ret := m.ctrl.Call(m, "Deploy") + ret0, _ := ret[0].(error) + return ret0 +} + +// Deploy indicates an expected call of Deploy +func (mr *MockDryadJobRunnerMockRecorder) Deploy() *gomock.Call { + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deploy", reflect.TypeOf((*MockDryadJobRunner)(nil).Deploy)) +} + +// Boot mocks base method +func (m *MockDryadJobRunner) Boot() error { + ret := m.ctrl.Call(m, "Boot") + ret0, _ := ret[0].(error) + return ret0 +} + +// Boot indicates an expected call of Boot +func (mr *MockDryadJobRunnerMockRecorder) Boot() *gomock.Call { + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Boot", reflect.TypeOf((*MockDryadJobRunner)(nil).Boot)) +} + +// Test mocks base method +func (m *MockDryadJobRunner) Test() error { + ret := m.ctrl.Call(m, "Test") + ret0, _ := ret[0].(error) + return ret0 +} + +// Test indicates an expected call of Test +func (mr *MockDryadJobRunnerMockRecorder) Test() *gomock.Call { + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Test", reflect.TypeOf((*MockDryadJobRunner)(nil).Test)) +} -- 2.7.4