| /* |
| * Copyright 2022-present Open Networking Foundation |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| // Code generated by MockGen. DO NOT EDIT. |
| // Source: /home/vinod/go/src/gerrit.opencord.org/voltha-go-controller/internal/pkg/tasks/task_intf.go |
| |
| // Package mock_tasks is a generated GoMock package. |
| package mocks |
| |
| import ( |
| context "context" |
| reflect "reflect" |
| |
| gomock "github.com/golang/mock/gomock" |
| ) |
| |
| // MockTask is a mock of Task interface. |
| type MockTask struct { |
| ctrl *gomock.Controller |
| recorder *MockTaskMockRecorder |
| } |
| |
| // MockTaskMockRecorder is the mock recorder for MockTask. |
| type MockTaskMockRecorder struct { |
| mock *MockTask |
| } |
| |
| // NewMockTask creates a new mock instance. |
| func NewMockTask(ctrl *gomock.Controller) *MockTask { |
| mock := &MockTask{ctrl: ctrl} |
| mock.recorder = &MockTaskMockRecorder{mock} |
| return mock |
| } |
| |
| // EXPECT returns an object that allows the caller to indicate expected use. |
| func (m *MockTask) EXPECT() *MockTaskMockRecorder { |
| return m.recorder |
| } |
| |
| // Name mocks base method. |
| func (m *MockTask) Name() string { |
| m.ctrl.T.Helper() |
| ret := m.ctrl.Call(m, "Name") |
| ret0, _ := ret[0].(string) |
| return ret0 |
| } |
| |
| // Name indicates an expected call of Name. |
| func (mr *MockTaskMockRecorder) Name() *gomock.Call { |
| mr.mock.ctrl.T.Helper() |
| return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockTask)(nil).Name)) |
| } |
| |
| // Start mocks base method. |
| func (m *MockTask) Start(arg0 context.Context, arg1 uint8) error { |
| m.ctrl.T.Helper() |
| ret := m.ctrl.Call(m, "Start", arg0, arg1) |
| ret0, _ := ret[0].(error) |
| return ret0 |
| } |
| |
| // Start indicates an expected call of Start. |
| func (mr *MockTaskMockRecorder) Start(arg0, arg1 interface{}) *gomock.Call { |
| mr.mock.ctrl.T.Helper() |
| return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockTask)(nil).Start), arg0, arg1) |
| } |
| |
| // Stop mocks base method. |
| func (m *MockTask) Stop() { |
| m.ctrl.T.Helper() |
| m.ctrl.Call(m, "Stop") |
| } |
| |
| // Stop indicates an expected call of Stop. |
| func (mr *MockTaskMockRecorder) Stop() *gomock.Call { |
| mr.mock.ctrl.T.Helper() |
| return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockTask)(nil).Stop)) |
| } |
| |
| // TaskID mocks base method. |
| func (m *MockTask) TaskID() uint8 { |
| m.ctrl.T.Helper() |
| ret := m.ctrl.Call(m, "TaskID") |
| ret0, _ := ret[0].(uint8) |
| return ret0 |
| } |
| |
| // TaskID indicates an expected call of TaskID. |
| func (mr *MockTaskMockRecorder) TaskID() *gomock.Call { |
| mr.mock.ctrl.T.Helper() |
| return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TaskID", reflect.TypeOf((*MockTask)(nil).TaskID)) |
| } |
| |
| // Timestamp mocks base method. |
| func (m *MockTask) Timestamp() string { |
| m.ctrl.T.Helper() |
| ret := m.ctrl.Call(m, "Timestamp") |
| ret0, _ := ret[0].(string) |
| return ret0 |
| } |
| |
| // Timestamp indicates an expected call of Timestamp. |
| func (mr *MockTaskMockRecorder) Timestamp() *gomock.Call { |
| mr.mock.ctrl.T.Helper() |
| return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Timestamp", reflect.TypeOf((*MockTask)(nil).Timestamp)) |
| } |