-
Notifications
You must be signed in to change notification settings - Fork 0
/
gen_service_mocks.go
116 lines (97 loc) · 4.01 KB
/
gen_service_mocks.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// Code generated by MockGen. DO NOT EDIT.
// Source: ../../pkg/service/service.go
// Package testutils is a generated GoMock package.
package testutils
import (
reflect "reflect"
ssm "github.com/aws/aws-sdk-go/service/ssm"
gomock "github.com/golang/mock/gomock"
)
// MockSSMClient is a mock of SSMClient interface.
type MockSSMClient struct {
ctrl *gomock.Controller
recorder *MockSSMClientMockRecorder
}
// MockSSMClientMockRecorder is the mock recorder for MockSSMClient.
type MockSSMClientMockRecorder struct {
mock *MockSSMClient
}
// NewMockSSMClient creates a new mock instance.
func NewMockSSMClient(ctrl *gomock.Controller) *MockSSMClient {
mock := &MockSSMClient{ctrl: ctrl}
mock.recorder = &MockSSMClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockSSMClient) EXPECT() *MockSSMClientMockRecorder {
return m.recorder
}
// GetParametersByPathPages mocks base method.
func (m *MockSSMClient) GetParametersByPathPages(getParametersByPathInput *ssm.GetParametersByPathInput, fn func(*ssm.GetParametersByPathOutput, bool) bool) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetParametersByPathPages", getParametersByPathInput, fn)
ret0, _ := ret[0].(error)
return ret0
}
// GetParametersByPathPages indicates an expected call of GetParametersByPathPages.
func (mr *MockSSMClientMockRecorder) GetParametersByPathPages(getParametersByPathInput, fn interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetParametersByPathPages", reflect.TypeOf((*MockSSMClient)(nil).GetParametersByPathPages), getParametersByPathInput, fn)
}
// PutParameter mocks base method.
func (m *MockSSMClient) PutParameter(input *ssm.PutParameterInput) (*ssm.PutParameterOutput, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PutParameter", input)
ret0, _ := ret[0].(*ssm.PutParameterOutput)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// PutParameter indicates an expected call of PutParameter.
func (mr *MockSSMClientMockRecorder) PutParameter(input interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutParameter", reflect.TypeOf((*MockSSMClient)(nil).PutParameter), input)
}
// MockService is a mock of Service interface.
type MockService struct {
ctrl *gomock.Controller
recorder *MockServiceMockRecorder
}
// MockServiceMockRecorder is the mock recorder for MockService.
type MockServiceMockRecorder struct {
mock *MockService
}
// NewMockService creates a new mock instance.
func NewMockService(ctrl *gomock.Controller) *MockService {
mock := &MockService{ctrl: ctrl}
mock.recorder = &MockServiceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockService) EXPECT() *MockServiceMockRecorder {
return m.recorder
}
// GetParameters mocks base method.
func (m *MockService) GetParameters(searchPath string) (map[string]string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetParameters", searchPath)
ret0, _ := ret[0].(map[string]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetParameters indicates an expected call of GetParameters.
func (mr *MockServiceMockRecorder) GetParameters(searchPath interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetParameters", reflect.TypeOf((*MockService)(nil).GetParameters), searchPath)
}
// PutParameters mocks base method.
func (m *MockService) PutParameters(path string, params map[string]string, overwrite bool) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PutParameters", path, params, overwrite)
ret0, _ := ret[0].(error)
return ret0
}
// PutParameters indicates an expected call of PutParameters.
func (mr *MockServiceMockRecorder) PutParameters(path, params, overwrite interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PutParameters", reflect.TypeOf((*MockService)(nil).PutParameters), path, params, overwrite)
}