blob: 5f8ba92c612f2a0968588262aa3a167152d76477 [file] [log] [blame]
vinokuma02fbfd02023-07-05 15:23:33 +05301/*
2* Copyright 2022-present Open Networking Foundation
3* Licensed under the Apache License, Version 2.0 (the "License");
4* you may not use this file except in compliance with the License.
5* You may obtain a copy of the License at
6*
7* http://www.apache.org/licenses/LICENSE-2.0
8*
9* Unless required by applicable law or agreed to in writing, software
10* distributed under the License is distributed on an "AS IS" BASIS,
11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12* See the License for the specific language governing permissions and
13* limitations under the License.
14 */
15
16// Code generated by MockGen. DO NOT EDIT.
17// Source: /home/vinod/go/src/gerrit.opencord.org/voltha-go-controller/internal/pkg/tasks/task_intf.go
18
19// Package mock_tasks is a generated GoMock package.
20package mocks
21
22import (
23 context "context"
24 reflect "reflect"
25
26 gomock "github.com/golang/mock/gomock"
27)
28
29// MockTask is a mock of Task interface.
30type MockTask struct {
31 ctrl *gomock.Controller
32 recorder *MockTaskMockRecorder
33}
34
35// MockTaskMockRecorder is the mock recorder for MockTask.
36type MockTaskMockRecorder struct {
37 mock *MockTask
38}
39
40// NewMockTask creates a new mock instance.
41func NewMockTask(ctrl *gomock.Controller) *MockTask {
42 mock := &MockTask{ctrl: ctrl}
43 mock.recorder = &MockTaskMockRecorder{mock}
44 return mock
45}
46
47// EXPECT returns an object that allows the caller to indicate expected use.
48func (m *MockTask) EXPECT() *MockTaskMockRecorder {
49 return m.recorder
50}
51
52// Name mocks base method.
53func (m *MockTask) Name() string {
54 m.ctrl.T.Helper()
55 ret := m.ctrl.Call(m, "Name")
56 ret0, _ := ret[0].(string)
57 return ret0
58}
59
60// Name indicates an expected call of Name.
61func (mr *MockTaskMockRecorder) Name() *gomock.Call {
62 mr.mock.ctrl.T.Helper()
63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockTask)(nil).Name))
64}
65
66// Start mocks base method.
67func (m *MockTask) Start(arg0 context.Context, arg1 uint8) error {
68 m.ctrl.T.Helper()
69 ret := m.ctrl.Call(m, "Start", arg0, arg1)
70 ret0, _ := ret[0].(error)
71 return ret0
72}
73
74// Start indicates an expected call of Start.
75func (mr *MockTaskMockRecorder) Start(arg0, arg1 interface{}) *gomock.Call {
76 mr.mock.ctrl.T.Helper()
77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockTask)(nil).Start), arg0, arg1)
78}
79
80// Stop mocks base method.
81func (m *MockTask) Stop() {
82 m.ctrl.T.Helper()
83 m.ctrl.Call(m, "Stop")
84}
85
86// Stop indicates an expected call of Stop.
87func (mr *MockTaskMockRecorder) Stop() *gomock.Call {
88 mr.mock.ctrl.T.Helper()
89 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockTask)(nil).Stop))
90}
91
92// TaskID mocks base method.
93func (m *MockTask) TaskID() uint8 {
94 m.ctrl.T.Helper()
95 ret := m.ctrl.Call(m, "TaskID")
96 ret0, _ := ret[0].(uint8)
97 return ret0
98}
99
100// TaskID indicates an expected call of TaskID.
101func (mr *MockTaskMockRecorder) TaskID() *gomock.Call {
102 mr.mock.ctrl.T.Helper()
103 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TaskID", reflect.TypeOf((*MockTask)(nil).TaskID))
104}
105
106// Timestamp mocks base method.
107func (m *MockTask) Timestamp() string {
108 m.ctrl.T.Helper()
109 ret := m.ctrl.Call(m, "Timestamp")
110 ret0, _ := ret[0].(string)
111 return ret0
112}
113
114// Timestamp indicates an expected call of Timestamp.
115func (mr *MockTaskMockRecorder) Timestamp() *gomock.Call {
116 mr.mock.ctrl.T.Helper()
117 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Timestamp", reflect.TypeOf((*MockTask)(nil).Timestamp))
118}