@@ -195,6 +195,10 @@ func TestActionsService_UpdateRepoVariable(t *testing.T) {
195
195
}
196
196
197
197
const methodName = "UpdateRepoVariable"
198
+ testBadOptions (t , methodName , func () (err error ) {
199
+ _ , err = client .Actions .UpdateRepoVariable (ctx , "o" , "r" , nil )
200
+ return err
201
+ })
198
202
testBadOptions (t , methodName , func () (err error ) {
199
203
_ , err = client .Actions .UpdateRepoVariable (ctx , "\n " , "\n " , input )
200
204
return err
@@ -374,6 +378,10 @@ func TestActionsService_UpdateOrgVariable(t *testing.T) {
374
378
}
375
379
376
380
const methodName = "UpdateOrgVariable"
381
+ testBadOptions (t , methodName , func () (err error ) {
382
+ _ , err = client .Actions .UpdateOrgVariable (ctx , "o" , nil )
383
+ return err
384
+ })
377
385
testBadOptions (t , methodName , func () (err error ) {
378
386
_ , err = client .Actions .UpdateOrgVariable (ctx , "\n " , input )
379
387
return err
@@ -468,6 +476,14 @@ func TestActionsService_AddSelectedRepoToOrgVariable(t *testing.T) {
468
476
}
469
477
470
478
const methodName = "AddSelectedRepoToOrgVariable"
479
+ testBadOptions (t , methodName , func () (err error ) {
480
+ _ , err = client .Actions .AddSelectedRepoToOrgVariable (ctx , "o" , "NAME" , nil )
481
+ return err
482
+ })
483
+ testBadOptions (t , methodName , func () (err error ) {
484
+ _ , err = client .Actions .AddSelectedRepoToOrgVariable (ctx , "o" , "NAME" , & Repository {ID : nil })
485
+ return err
486
+ })
471
487
testBadOptions (t , methodName , func () (err error ) {
472
488
_ , err = client .Actions .AddSelectedRepoToOrgVariable (ctx , "\n " , "\n " , repo )
473
489
return err
@@ -494,6 +510,14 @@ func TestActionsService_RemoveSelectedRepoFromOrgVariable(t *testing.T) {
494
510
}
495
511
496
512
const methodName = "RemoveSelectedRepoFromOrgVariable"
513
+ testBadOptions (t , methodName , func () (err error ) {
514
+ _ , err = client .Actions .RemoveSelectedRepoFromOrgVariable (ctx , "o" , "NAME" , nil )
515
+ return err
516
+ })
517
+ testBadOptions (t , methodName , func () (err error ) {
518
+ _ , err = client .Actions .RemoveSelectedRepoFromOrgVariable (ctx , "o" , "NAME" , & Repository {ID : nil })
519
+ return err
520
+ })
497
521
testBadOptions (t , methodName , func () (err error ) {
498
522
_ , err = client .Actions .RemoveSelectedRepoFromOrgVariable (ctx , "\n " , "\n " , repo )
499
523
return err
@@ -666,6 +690,10 @@ func TestActionsService_UpdateEnvVariable(t *testing.T) {
666
690
}
667
691
668
692
const methodName = "UpdateEnvVariable"
693
+ testBadOptions (t , methodName , func () (err error ) {
694
+ _ , err = client .Actions .UpdateEnvVariable (ctx , "usr" , "1" , "e" , nil )
695
+ return err
696
+ })
669
697
testBadOptions (t , methodName , func () (err error ) {
670
698
_ , err = client .Actions .UpdateEnvVariable (ctx , "usr" , "1" , "\n " , input )
671
699
return err
0 commit comments