-
Notifications
You must be signed in to change notification settings - Fork 5
/
producer_mock.go
70 lines (59 loc) · 2.06 KB
/
producer_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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/conduitio/conduit-connector-kafka/destination (interfaces: Producer)
//
// Generated by this command:
//
// mockgen -destination producer_mock.go -package destination -mock_names=Producer=MockProducer . Producer
//
// Package destination is a generated GoMock package.
package destination
import (
context "context"
reflect "reflect"
sdk "github.com/conduitio/conduit-connector-sdk"
gomock "go.uber.org/mock/gomock"
)
// MockProducer is a mock of Producer interface.
type MockProducer struct {
ctrl *gomock.Controller
recorder *MockProducerMockRecorder
}
// MockProducerMockRecorder is the mock recorder for MockProducer.
type MockProducerMockRecorder struct {
mock *MockProducer
}
// NewMockProducer creates a new mock instance.
func NewMockProducer(ctrl *gomock.Controller) *MockProducer {
mock := &MockProducer{ctrl: ctrl}
mock.recorder = &MockProducerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockProducer) EXPECT() *MockProducerMockRecorder {
return m.recorder
}
// Close mocks base method.
func (m *MockProducer) Close(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Close", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Close indicates an expected call of Close.
func (mr *MockProducerMockRecorder) Close(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockProducer)(nil).Close), arg0)
}
// Produce mocks base method.
func (m *MockProducer) Produce(arg0 context.Context, arg1 []sdk.Record) (int, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Produce", arg0, arg1)
ret0, _ := ret[0].(int)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Produce indicates an expected call of Produce.
func (mr *MockProducerMockRecorder) Produce(arg0, arg1 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Produce", reflect.TypeOf((*MockProducer)(nil).Produce), arg0, arg1)
}