generated from ConduitIO/conduit-connector-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmock_response_parser.go
94 lines (79 loc) · 3.08 KB
/
mock_response_parser.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
94
// Code generated by MockGen. DO NOT EDIT.
// Source: source.go
//
// Generated by this command:
//
// mockgen -destination=mock_response_parser.go -source=source.go -package=http -mock_names=responseParser=MockResponseParser . responseParser
//
// Package http is a generated GoMock package.
package http
import (
context "context"
reflect "reflect"
opencdc "github.com/conduitio/conduit-commons/opencdc"
gomock "go.uber.org/mock/gomock"
)
// MockrequestBuilder is a mock of requestBuilder interface.
type MockrequestBuilder struct {
ctrl *gomock.Controller
recorder *MockrequestBuilderMockRecorder
}
// MockrequestBuilderMockRecorder is the mock recorder for MockrequestBuilder.
type MockrequestBuilderMockRecorder struct {
mock *MockrequestBuilder
}
// NewMockrequestBuilder creates a new mock instance.
func NewMockrequestBuilder(ctrl *gomock.Controller) *MockrequestBuilder {
mock := &MockrequestBuilder{ctrl: ctrl}
mock.recorder = &MockrequestBuilderMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockrequestBuilder) EXPECT() *MockrequestBuilderMockRecorder {
return m.recorder
}
// build mocks base method.
func (m *MockrequestBuilder) build(ctx context.Context, previousResponseData map[string]any, position opencdc.Position) (*Request, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "build", ctx, previousResponseData, position)
ret0, _ := ret[0].(*Request)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// build indicates an expected call of build.
func (mr *MockrequestBuilderMockRecorder) build(ctx, previousResponseData, position any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "build", reflect.TypeOf((*MockrequestBuilder)(nil).build), ctx, previousResponseData, position)
}
// MockResponseParser is a mock of responseParser interface.
type MockResponseParser struct {
ctrl *gomock.Controller
recorder *MockResponseParserMockRecorder
}
// MockResponseParserMockRecorder is the mock recorder for MockResponseParser.
type MockResponseParserMockRecorder struct {
mock *MockResponseParser
}
// NewMockResponseParser creates a new mock instance.
func NewMockResponseParser(ctrl *gomock.Controller) *MockResponseParser {
mock := &MockResponseParser{ctrl: ctrl}
mock.recorder = &MockResponseParserMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockResponseParser) EXPECT() *MockResponseParserMockRecorder {
return m.recorder
}
// parse mocks base method.
func (m *MockResponseParser) parse(ctx context.Context, responseBytes []byte) (*Response, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "parse", ctx, responseBytes)
ret0, _ := ret[0].(*Response)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// parse indicates an expected call of parse.
func (mr *MockResponseParserMockRecorder) parse(ctx, responseBytes any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "parse", reflect.TypeOf((*MockResponseParser)(nil).parse), ctx, responseBytes)
}