-
Notifications
You must be signed in to change notification settings - Fork 70
/
Copy pathmocks.go
151 lines (105 loc) · 3.92 KB
/
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
//revive:disable:exported
package cloudaccess
import (
"context"
"github.com/stretchr/testify/mock"
)
type Mock struct {
mock.Mock
}
var _ CloudAccess = &Mock{}
func (m *Mock) GetAccessKeyStatus(ctx context.Context, r GetAccessKeyStatusRequest) (*GetAccessKeyStatusResponse, error) {
args := m.Called(ctx, r)
if args.Error(1) != nil {
return nil, args.Error(1)
}
return args.Get(0).(*GetAccessKeyStatusResponse), args.Error(1)
}
func (m *Mock) GetAccessKeyVersionStatus(ctx context.Context, r GetAccessKeyVersionStatusRequest) (*GetAccessKeyVersionStatusResponse, error) {
args := m.Called(ctx, r)
if args.Error(1) != nil {
return nil, args.Error(1)
}
return args.Get(0).(*GetAccessKeyVersionStatusResponse), args.Error(1)
}
func (m *Mock) LookupProperties(ctx context.Context, r LookupPropertiesRequest) (*LookupPropertiesResponse, error) {
args := m.Called(ctx, r)
if args.Error(1) != nil {
return nil, args.Error(1)
}
return args.Get(0).(*LookupPropertiesResponse), args.Error(1)
}
func (m *Mock) GetAsyncPropertiesLookupID(ctx context.Context, r GetAsyncPropertiesLookupIDRequest) (*GetAsyncPropertiesLookupIDResponse, error) {
args := m.Called(ctx, r)
if args.Error(1) != nil {
return nil, args.Error(1)
}
return args.Get(0).(*GetAsyncPropertiesLookupIDResponse), args.Error(1)
}
func (m *Mock) PerformAsyncPropertiesLookup(ctx context.Context, r PerformAsyncPropertiesLookupRequest) (*PerformAsyncPropertiesLookupResponse, error) {
args := m.Called(ctx, r)
if args.Error(1) != nil {
return nil, args.Error(1)
}
return args.Get(0).(*PerformAsyncPropertiesLookupResponse), args.Error(1)
}
func (m *Mock) CreateAccessKey(ctx context.Context, r CreateAccessKeyRequest) (*CreateAccessKeyResponse, error) {
args := m.Called(ctx, r)
if args.Error(1) != nil {
return nil, args.Error(1)
}
return args.Get(0).(*CreateAccessKeyResponse), args.Error(1)
}
func (m *Mock) GetAccessKey(ctx context.Context, r AccessKeyRequest) (*GetAccessKeyResponse, error) {
args := m.Called(ctx, r)
if args.Error(1) != nil {
return nil, args.Error(1)
}
return args.Get(0).(*GetAccessKeyResponse), args.Error(1)
}
func (m *Mock) ListAccessKeys(ctx context.Context, r ListAccessKeysRequest) (*ListAccessKeysResponse, error) {
args := m.Called(ctx, r)
if args.Error(1) != nil {
return nil, args.Error(1)
}
return args.Get(0).(*ListAccessKeysResponse), args.Error(1)
}
func (m *Mock) UpdateAccessKey(ctx context.Context, request UpdateAccessKeyRequest, param AccessKeyRequest) (*UpdateAccessKeyResponse, error) {
args := m.Called(ctx, request, param)
if args.Get(1) != nil {
return nil, args.Error(1)
}
return args.Get(0).(*UpdateAccessKeyResponse), args.Error(1)
}
func (m *Mock) DeleteAccessKey(ctx context.Context, r AccessKeyRequest) error {
args := m.Called(ctx, r)
return args.Error(0)
}
func (m *Mock) GetAccessKeyVersion(ctx context.Context, r GetAccessKeyVersionRequest) (*GetAccessKeyVersionResponse, error) {
args := m.Called(ctx, r)
if args.Error(1) != nil {
return nil, args.Error(1)
}
return args.Get(0).(*GetAccessKeyVersionResponse), args.Error(1)
}
func (m *Mock) CreateAccessKeyVersion(ctx context.Context, r CreateAccessKeyVersionRequest) (*CreateAccessKeyVersionResponse, error) {
args := m.Called(ctx, r)
if args.Error(1) != nil {
return nil, args.Error(1)
}
return args.Get(0).(*CreateAccessKeyVersionResponse), args.Error(1)
}
func (m *Mock) ListAccessKeyVersions(ctx context.Context, r ListAccessKeyVersionsRequest) (*ListAccessKeyVersionsResponse, error) {
args := m.Called(ctx, r)
if args.Error(1) != nil {
return nil, args.Error(1)
}
return args.Get(0).(*ListAccessKeyVersionsResponse), args.Error(1)
}
func (m *Mock) DeleteAccessKeyVersion(ctx context.Context, r DeleteAccessKeyVersionRequest) (*DeleteAccessKeyVersionResponse, error) {
args := m.Called(ctx, r)
if args.Error(1) != nil {
return nil, args.Error(1)
}
return args.Get(0).(*DeleteAccessKeyVersionResponse), args.Error(1)
}