@@ -569,7 +569,7 @@ func TestAppsService_CreateAttachment(t *testing.T) {
569569 })
570570}
571571
572- func TestAppsService_FindOrganizationInstallation (t * testing.T ) {
572+ func TestAppsService_GetOrganizationInstallation (t * testing.T ) {
573573 t .Parallel ()
574574 client , mux , _ := setup (t )
575575
@@ -579,32 +579,32 @@ func TestAppsService_FindOrganizationInstallation(t *testing.T) {
579579 })
580580
581581 ctx := t .Context ()
582- installation , _ , err := client .Apps .FindOrganizationInstallation (ctx , "o" )
582+ installation , _ , err := client .Apps .GetOrganizationInstallation (ctx , "o" )
583583 if err != nil {
584- t .Errorf ("Apps.FindOrganizationInstallation returned error: %v" , err )
584+ t .Errorf ("Apps.GetOrganizationInstallation returned error: %v" , err )
585585 }
586586
587587 want := & Installation {ID : Ptr (int64 (1 )), AppID : Ptr (int64 (1 )), TargetID : Ptr (int64 (1 )), TargetType : Ptr ("Organization" )}
588588 if ! cmp .Equal (installation , want ) {
589- t .Errorf ("Apps.FindOrganizationInstallation returned %+v, want %+v" , installation , want )
589+ t .Errorf ("Apps.GetOrganizationInstallation returned %+v, want %+v" , installation , want )
590590 }
591591
592- const methodName = "FindOrganizationInstallation "
592+ const methodName = "GetOrganizationInstallation "
593593 testBadOptions (t , methodName , func () (err error ) {
594- _ , _ , err = client .Apps .FindOrganizationInstallation (ctx , "\n " )
594+ _ , _ , err = client .Apps .GetOrganizationInstallation (ctx , "\n " )
595595 return err
596596 })
597597
598598 testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
599- got , resp , err := client .Apps .FindOrganizationInstallation (ctx , "o" )
599+ got , resp , err := client .Apps .GetOrganizationInstallation (ctx , "o" )
600600 if got != nil {
601601 t .Errorf ("testNewRequestAndDoFailure %v = %#v, want nil" , methodName , got )
602602 }
603603 return resp , err
604604 })
605605}
606606
607- func TestAppsService_FindEnterpriseInstallation (t * testing.T ) {
607+ func TestAppsService_GetEnterpriseInstallation (t * testing.T ) {
608608 t .Parallel ()
609609 client , mux , _ := setup (t )
610610
@@ -614,32 +614,32 @@ func TestAppsService_FindEnterpriseInstallation(t *testing.T) {
614614 })
615615
616616 ctx := t .Context ()
617- installation , _ , err := client .Apps .FindEnterpriseInstallation (ctx , "e" )
617+ installation , _ , err := client .Apps .GetEnterpriseInstallation (ctx , "e" )
618618 if err != nil {
619- t .Errorf ("Apps.FindEnterpriseInstallation returned error: %v" , err )
619+ t .Errorf ("Apps.GetEnterpriseInstallation returned error: %v" , err )
620620 }
621621
622622 want := & Installation {ID : Ptr (int64 (1 )), AppID : Ptr (int64 (1 )), TargetID : Ptr (int64 (1 )), TargetType : Ptr ("Enterprise" )}
623623 if ! cmp .Equal (installation , want ) {
624- t .Errorf ("Apps.FindEnterpriseInstallation returned %+v, want %+v" , installation , want )
624+ t .Errorf ("Apps.GetEnterpriseInstallation returned %+v, want %+v" , installation , want )
625625 }
626626
627- const methodName = "FindEnterpriseInstallation "
627+ const methodName = "GetEnterpriseInstallation "
628628 testBadOptions (t , methodName , func () (err error ) {
629- _ , _ , err = client .Apps .FindEnterpriseInstallation (ctx , "\n " )
629+ _ , _ , err = client .Apps .GetEnterpriseInstallation (ctx , "\n " )
630630 return err
631631 })
632632
633633 testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
634- got , resp , err := client .Apps .FindEnterpriseInstallation (ctx , "e" )
634+ got , resp , err := client .Apps .GetEnterpriseInstallation (ctx , "e" )
635635 if got != nil {
636636 t .Errorf ("testNewRequestAndDoFailure %v = %#v, want nil" , methodName , got )
637637 }
638638 return resp , err
639639 })
640640}
641641
642- func TestAppsService_FindRepositoryInstallation (t * testing.T ) {
642+ func TestAppsService_GetRepositoryInstallation (t * testing.T ) {
643643 t .Parallel ()
644644 client , mux , _ := setup (t )
645645
@@ -649,32 +649,32 @@ func TestAppsService_FindRepositoryInstallation(t *testing.T) {
649649 })
650650
651651 ctx := t .Context ()
652- installation , _ , err := client .Apps .FindRepositoryInstallation (ctx , "o" , "r" )
652+ installation , _ , err := client .Apps .GetRepositoryInstallation (ctx , "o" , "r" )
653653 if err != nil {
654- t .Errorf ("Apps.FindRepositoryInstallation returned error: %v" , err )
654+ t .Errorf ("Apps.GetRepositoryInstallation returned error: %v" , err )
655655 }
656656
657657 want := & Installation {ID : Ptr (int64 (1 )), AppID : Ptr (int64 (1 )), TargetID : Ptr (int64 (1 )), TargetType : Ptr ("Organization" )}
658658 if ! cmp .Equal (installation , want ) {
659- t .Errorf ("Apps.FindRepositoryInstallation returned %+v, want %+v" , installation , want )
659+ t .Errorf ("Apps.GetRepositoryInstallation returned %+v, want %+v" , installation , want )
660660 }
661661
662- const methodName = "FindRepositoryInstallation "
662+ const methodName = "GetRepositoryInstallation "
663663 testBadOptions (t , methodName , func () (err error ) {
664- _ , _ , err = client .Apps .FindRepositoryInstallation (ctx , "\n " , "\n " )
664+ _ , _ , err = client .Apps .GetRepositoryInstallation (ctx , "\n " , "\n " )
665665 return err
666666 })
667667
668668 testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
669- got , resp , err := client .Apps .FindRepositoryInstallation (ctx , "o" , "r" )
669+ got , resp , err := client .Apps .GetRepositoryInstallation (ctx , "o" , "r" )
670670 if got != nil {
671671 t .Errorf ("testNewRequestAndDoFailure %v = %#v, want nil" , methodName , got )
672672 }
673673 return resp , err
674674 })
675675}
676676
677- func TestAppsService_FindRepositoryInstallationByID (t * testing.T ) {
677+ func TestAppsService_GetRepositoryInstallationByID (t * testing.T ) {
678678 t .Parallel ()
679679 client , mux , _ := setup (t )
680680
@@ -684,32 +684,32 @@ func TestAppsService_FindRepositoryInstallationByID(t *testing.T) {
684684 })
685685
686686 ctx := t .Context ()
687- installation , _ , err := client .Apps .FindRepositoryInstallationByID (ctx , 1 )
687+ installation , _ , err := client .Apps .GetRepositoryInstallationByID (ctx , 1 )
688688 if err != nil {
689- t .Errorf ("Apps.FindRepositoryInstallationByID returned error: %v" , err )
689+ t .Errorf ("Apps.GetRepositoryInstallationByID returned error: %v" , err )
690690 }
691691
692692 want := & Installation {ID : Ptr (int64 (1 )), AppID : Ptr (int64 (1 )), TargetID : Ptr (int64 (1 )), TargetType : Ptr ("Organization" )}
693693 if ! cmp .Equal (installation , want ) {
694- t .Errorf ("Apps.FindRepositoryInstallationByID returned %+v, want %+v" , installation , want )
694+ t .Errorf ("Apps.GetRepositoryInstallationByID returned %+v, want %+v" , installation , want )
695695 }
696696
697- const methodName = "FindRepositoryInstallationByID "
697+ const methodName = "GetRepositoryInstallationByID "
698698 testBadOptions (t , methodName , func () (err error ) {
699- _ , _ , err = client .Apps .FindRepositoryInstallationByID (ctx , - 1 )
699+ _ , _ , err = client .Apps .GetRepositoryInstallationByID (ctx , - 1 )
700700 return err
701701 })
702702
703703 testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
704- got , resp , err := client .Apps .FindRepositoryInstallationByID (ctx , 1 )
704+ got , resp , err := client .Apps .GetRepositoryInstallationByID (ctx , 1 )
705705 if got != nil {
706706 t .Errorf ("testNewRequestAndDoFailure %v = %#v, want nil" , methodName , got )
707707 }
708708 return resp , err
709709 })
710710}
711711
712- func TestAppsService_FindUserInstallation (t * testing.T ) {
712+ func TestAppsService_GetUserInstallation (t * testing.T ) {
713713 t .Parallel ()
714714 client , mux , _ := setup (t )
715715
@@ -719,24 +719,24 @@ func TestAppsService_FindUserInstallation(t *testing.T) {
719719 })
720720
721721 ctx := t .Context ()
722- installation , _ , err := client .Apps .FindUserInstallation (ctx , "u" )
722+ installation , _ , err := client .Apps .GetUserInstallation (ctx , "u" )
723723 if err != nil {
724- t .Errorf ("Apps.FindUserInstallation returned error: %v" , err )
724+ t .Errorf ("Apps.GetUserInstallation returned error: %v" , err )
725725 }
726726
727727 want := & Installation {ID : Ptr (int64 (1 )), AppID : Ptr (int64 (1 )), TargetID : Ptr (int64 (1 )), TargetType : Ptr ("User" )}
728728 if ! cmp .Equal (installation , want ) {
729- t .Errorf ("Apps.FindUserInstallation returned %+v, want %+v" , installation , want )
729+ t .Errorf ("Apps.GetUserInstallation returned %+v, want %+v" , installation , want )
730730 }
731731
732- const methodName = "FindUserInstallation "
732+ const methodName = "GetUserInstallation "
733733 testBadOptions (t , methodName , func () (err error ) {
734- _ , _ , err = client .Apps .FindUserInstallation (ctx , "\n " )
734+ _ , _ , err = client .Apps .GetUserInstallation (ctx , "\n " )
735735 return err
736736 })
737737
738738 testNewRequestAndDoFailure (t , methodName , client , func () (* Response , error ) {
739- got , resp , err := client .Apps .FindUserInstallation (ctx , "u" )
739+ got , resp , err := client .Apps .GetUserInstallation (ctx , "u" )
740740 if got != nil {
741741 t .Errorf ("testNewRequestAndDoFailure %v = %#v, want nil" , methodName , got )
742742 }
0 commit comments