summaryrefslogtreecommitdiff
path: root/matcher/requestsmanager_mock_test.go
blob: 51a99bad36bc791153fcaae427bc09e854a8817a (plain)
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
// Code generated by MockGen. DO NOT EDIT.
// Source: git.tizen.org/tools/boruta/matcher (interfaces: RequestsManager)

package matcher

import (
	boruta "git.tizen.org/tools/boruta"
	gomock "github.com/golang/mock/gomock"
	reflect "reflect"
	time "time"
)

// MockRequestsManager is a mock of RequestsManager interface
type MockRequestsManager struct {
	ctrl     *gomock.Controller
	recorder *MockRequestsManagerMockRecorder
}

// MockRequestsManagerMockRecorder is the mock recorder for MockRequestsManager
type MockRequestsManagerMockRecorder struct {
	mock *MockRequestsManager
}

// NewMockRequestsManager creates a new mock instance
func NewMockRequestsManager(ctrl *gomock.Controller) *MockRequestsManager {
	mock := &MockRequestsManager{ctrl: ctrl}
	mock.recorder = &MockRequestsManagerMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockRequestsManager) EXPECT() *MockRequestsManagerMockRecorder {
	return m.recorder
}

// Close mocks base method
func (m *MockRequestsManager) Close(arg0 boruta.ReqID) error {
	ret := m.ctrl.Call(m, "Close", arg0)
	ret0, _ := ret[0].(error)
	return ret0
}

// Close indicates an expected call of Close
func (mr *MockRequestsManagerMockRecorder) Close(arg0 interface{}) *gomock.Call {
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockRequestsManager)(nil).Close), arg0)
}

// Get mocks base method
func (m *MockRequestsManager) Get(arg0 boruta.ReqID) (boruta.ReqInfo, error) {
	ret := m.ctrl.Call(m, "Get", arg0)
	ret0, _ := ret[0].(boruta.ReqInfo)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// Get indicates an expected call of Get
func (mr *MockRequestsManagerMockRecorder) Get(arg0 interface{}) *gomock.Call {
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockRequestsManager)(nil).Get), arg0)
}

// InitIteration mocks base method
func (m *MockRequestsManager) InitIteration() error {
	ret := m.ctrl.Call(m, "InitIteration")
	ret0, _ := ret[0].(error)
	return ret0
}

// InitIteration indicates an expected call of InitIteration
func (mr *MockRequestsManagerMockRecorder) InitIteration() *gomock.Call {
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InitIteration", reflect.TypeOf((*MockRequestsManager)(nil).InitIteration))
}

// Next mocks base method
func (m *MockRequestsManager) Next() (boruta.ReqID, bool) {
	ret := m.ctrl.Call(m, "Next")
	ret0, _ := ret[0].(boruta.ReqID)
	ret1, _ := ret[1].(bool)
	return ret0, ret1
}

// Next indicates an expected call of Next
func (mr *MockRequestsManagerMockRecorder) Next() *gomock.Call {
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Next", reflect.TypeOf((*MockRequestsManager)(nil).Next))
}

// Run mocks base method
func (m *MockRequestsManager) Run(arg0 boruta.ReqID, arg1 boruta.WorkerUUID) error {
	ret := m.ctrl.Call(m, "Run", arg0, arg1)
	ret0, _ := ret[0].(error)
	return ret0
}

// Run indicates an expected call of Run
func (mr *MockRequestsManagerMockRecorder) Run(arg0, arg1 interface{}) *gomock.Call {
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Run", reflect.TypeOf((*MockRequestsManager)(nil).Run), arg0, arg1)
}

// TerminateIteration mocks base method
func (m *MockRequestsManager) TerminateIteration() {
	m.ctrl.Call(m, "TerminateIteration")
}

// TerminateIteration indicates an expected call of TerminateIteration
func (mr *MockRequestsManagerMockRecorder) TerminateIteration() *gomock.Call {
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TerminateIteration", reflect.TypeOf((*MockRequestsManager)(nil).TerminateIteration))
}

// Timeout mocks base method
func (m *MockRequestsManager) Timeout(arg0 boruta.ReqID) error {
	ret := m.ctrl.Call(m, "Timeout", arg0)
	ret0, _ := ret[0].(error)
	return ret0
}

// Timeout indicates an expected call of Timeout
func (mr *MockRequestsManagerMockRecorder) Timeout(arg0 interface{}) *gomock.Call {
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Timeout", reflect.TypeOf((*MockRequestsManager)(nil).Timeout), arg0)
}

// VerifyIfReady mocks base method
func (m *MockRequestsManager) VerifyIfReady(arg0 boruta.ReqID, arg1 time.Time) bool {
	ret := m.ctrl.Call(m, "VerifyIfReady", arg0, arg1)
	ret0, _ := ret[0].(bool)
	return ret0
}

// VerifyIfReady indicates an expected call of VerifyIfReady
func (mr *MockRequestsManagerMockRecorder) VerifyIfReady(arg0, arg1 interface{}) *gomock.Call {
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyIfReady", reflect.TypeOf((*MockRequestsManager)(nil).VerifyIfReady), arg0, arg1)
}