forked from nitrictech/nitric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock.go
93 lines (78 loc) · 3.1 KB
/
mock.go
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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/nitrictech/nitric/pkg/plugins/queue (interfaces: QueueService)
// Package mock_queue is a generated GoMock package.
package mock_queue
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
queue "github.com/nitrictech/nitric/pkg/plugins/queue"
)
// MockQueueService is a mock of QueueService interface.
type MockQueueService struct {
ctrl *gomock.Controller
recorder *MockQueueServiceMockRecorder
}
// MockQueueServiceMockRecorder is the mock recorder for MockQueueService.
type MockQueueServiceMockRecorder struct {
mock *MockQueueService
}
// NewMockQueueService creates a new mock instance.
func NewMockQueueService(ctrl *gomock.Controller) *MockQueueService {
mock := &MockQueueService{ctrl: ctrl}
mock.recorder = &MockQueueServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockQueueService) EXPECT() *MockQueueServiceMockRecorder {
return m.recorder
}
// Complete mocks base method.
func (m *MockQueueService) Complete(arg0, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Complete", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Complete indicates an expected call of Complete.
func (mr *MockQueueServiceMockRecorder) Complete(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Complete", reflect.TypeOf((*MockQueueService)(nil).Complete), arg0, arg1)
}
// Receive mocks base method.
func (m *MockQueueService) Receive(arg0 queue.ReceiveOptions) ([]queue.NitricTask, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Receive", arg0)
ret0, _ := ret[0].([]queue.NitricTask)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Receive indicates an expected call of Receive.
func (mr *MockQueueServiceMockRecorder) Receive(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Receive", reflect.TypeOf((*MockQueueService)(nil).Receive), arg0)
}
// Send mocks base method.
func (m *MockQueueService) Send(arg0 string, arg1 queue.NitricTask) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Send", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// Send indicates an expected call of Send.
func (mr *MockQueueServiceMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockQueueService)(nil).Send), arg0, arg1)
}
// SendBatch mocks base method.
func (m *MockQueueService) SendBatch(arg0 string, arg1 []queue.NitricTask) (*queue.SendBatchResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SendBatch", arg0, arg1)
ret0, _ := ret[0].(*queue.SendBatchResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// SendBatch indicates an expected call of SendBatch.
func (mr *MockQueueServiceMockRecorder) SendBatch(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendBatch", reflect.TypeOf((*MockQueueService)(nil).SendBatch), arg0, arg1)
}