@@ -38,6 +38,15 @@ func TestMarketplaceService_ListPlans(t *testing.T) {
38
38
if ! reflect .DeepEqual (plans , want ) {
39
39
t .Errorf ("Marketplace.ListPlans returned %+v, want %+v" , plans , want )
40
40
}
41
+
42
+ const methodName = "ListPlans"
43
+ testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
44
+ got , resp , err := client .Marketplace .ListPlans (ctx , opt )
45
+ if got != nil {
46
+ t .Errorf ("testNewRequestAndDoFailure %v = %#v, want nil" , methodName , got )
47
+ }
48
+ return resp , err
49
+ })
41
50
}
42
51
43
52
func TestMarketplaceService_Stubbed_ListPlans (t * testing.T ) {
@@ -84,6 +93,15 @@ func TestMarketplaceService_ListPlanAccountsForPlan(t *testing.T) {
84
93
if ! reflect .DeepEqual (accounts , want ) {
85
94
t .Errorf ("Marketplace.ListPlanAccountsForPlan returned %+v, want %+v" , accounts , want )
86
95
}
96
+
97
+ const methodName = "ListPlanAccountsForPlan"
98
+ testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
99
+ got , resp , err := client .Marketplace .ListPlanAccountsForPlan (ctx , 1 , opt )
100
+ if got != nil {
101
+ t .Errorf ("testNewRequestAndDoFailure %v = %#v, want nil" , methodName , got )
102
+ }
103
+ return resp , err
104
+ })
87
105
}
88
106
89
107
func TestMarketplaceService_Stubbed_ListPlanAccountsForPlan (t * testing.T ) {
@@ -130,6 +148,15 @@ func TestMarketplaceService_ListPlanAccountsForAccount(t *testing.T) {
130
148
if ! reflect .DeepEqual (accounts , want ) {
131
149
t .Errorf ("Marketplace.ListPlanAccountsForAccount returned %+v, want %+v" , accounts , want )
132
150
}
151
+
152
+ const methodName = "ListPlanAccountsForAccount"
153
+ testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
154
+ got , resp , err := client .Marketplace .ListPlanAccountsForAccount (ctx , 1 , opt )
155
+ if got != nil {
156
+ t .Errorf ("testNewRequestAndDoFailure %v = %#v, want nil" , methodName , got )
157
+ }
158
+ return resp , err
159
+ })
133
160
}
134
161
135
162
func TestMarketplaceService_Stubbed_ListPlanAccountsForAccount (t * testing.T ) {
@@ -176,6 +203,15 @@ func TestMarketplaceService_ListMarketplacePurchasesForUser(t *testing.T) {
176
203
if ! reflect .DeepEqual (purchases , want ) {
177
204
t .Errorf ("Marketplace.ListMarketplacePurchasesForUser returned %+v, want %+v" , purchases , want )
178
205
}
206
+
207
+ const methodName = "ListMarketplacePurchasesForUser"
208
+ testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
209
+ got , resp , err := client .Marketplace .ListMarketplacePurchasesForUser (ctx , opt )
210
+ if got != nil {
211
+ t .Errorf ("testNewRequestAndDoFailure %v = %#v, want nil" , methodName , got )
212
+ }
213
+ return resp , err
214
+ })
179
215
}
180
216
181
217
func TestMarketplaceService_Stubbed_ListMarketplacePurchasesForUser (t * testing.T ) {
0 commit comments