From 360694733602620f741dad61b04018b86821c9a5 Mon Sep 17 00:00:00 2001 From: billnapier Date: Tue, 3 Oct 2023 22:56:38 +0000 Subject: [PATCH] And update the tests I missed in the last commit. --- github/github-accessors.go | 102 ++++++++++++++++---------------- github/github-accessors_test.go | 102 ++++++++++++++++---------------- 2 files changed, 102 insertions(+), 102 deletions(-) diff --git a/github/github-accessors.go b/github/github-accessors.go index a9c33e1b5e..ecdaf1a073 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -5598,12 +5598,12 @@ func (d *DeploymentEvent) GetInstallation() *Installation { return d.Installation } -// GetOrganization returns the Organization field. -func (d *DeploymentEvent) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (d *DeploymentEvent) GetOrg() *Organization { if d == nil { return nil } - return d.Organization + return d.Org } // GetRepo returns the Repo field. @@ -5910,12 +5910,12 @@ func (d *DeploymentStatusEvent) GetInstallation() *Installation { return d.Installation } -// GetOrganization returns the Organization field. -func (d *DeploymentStatusEvent) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (d *DeploymentStatusEvent) GetOrg() *Organization { if d == nil { return nil } - return d.Organization + return d.Org } // GetRepo returns the Repo field. @@ -7718,12 +7718,12 @@ func (g *GollumEvent) GetInstallation() *Installation { return g.Installation } -// GetOrganization returns the Organization field. -func (g *GollumEvent) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (g *GollumEvent) GetOrg() *Organization { if g == nil { return nil } - return g.Organization + return g.Org } // GetRepo returns the Repo field. @@ -8598,12 +8598,12 @@ func (i *InstallationEvent) GetInstallation() *Installation { return i.Installation } -// GetOrganization returns the Organization field. -func (i *InstallationEvent) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (i *InstallationEvent) GetOrg() *Organization { if i == nil { return nil } - return i.Organization + return i.Org } // GetRequester returns the Requester field. @@ -8942,12 +8942,12 @@ func (i *InstallationRepositoriesEvent) GetInstallation() *Installation { return i.Installation } -// GetOrganization returns the Organization field. -func (i *InstallationRepositoriesEvent) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (i *InstallationRepositoriesEvent) GetOrg() *Organization { if i == nil { return nil } - return i.Organization + return i.Org } // GetRepositorySelection returns the RepositorySelection field if it's non-nil, zero value otherwise. @@ -9998,12 +9998,12 @@ func (i *IssuesEvent) GetMilestone() *Milestone { return i.Milestone } -// GetOrganization returns the Organization field. -func (i *IssuesEvent) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (i *IssuesEvent) GetOrg() *Organization { if i == nil { return nil } - return i.Organization + return i.Org } // GetRepo returns the Repo field. @@ -11054,12 +11054,12 @@ func (m *MarketplacePurchaseEvent) GetMarketplacePurchase() *MarketplacePurchase return m.MarketplacePurchase } -// GetOrganization returns the Organization field. -func (m *MarketplacePurchaseEvent) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (m *MarketplacePurchaseEvent) GetOrg() *Organization { if m == nil { return nil } - return m.Organization + return m.Org } // GetPreviousMarketplacePurchase returns the PreviousMarketplacePurchase field. @@ -11110,12 +11110,12 @@ func (m *MemberEvent) GetMember() *User { return m.Member } -// GetOrganization returns the Organization field. -func (m *MemberEvent) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (m *MemberEvent) GetOrg() *Organization { if m == nil { return nil } - return m.Organization + return m.Org } // GetRepo returns the Repo field. @@ -13350,12 +13350,12 @@ func (p *PageBuildEvent) GetInstallation() *Installation { return p.Installation } -// GetOrganization returns the Organization field. -func (p *PageBuildEvent) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (p *PageBuildEvent) GetOrg() *Organization { if p == nil { return nil } - return p.Organization + return p.Org } // GetRepo returns the Repo field. @@ -13894,12 +13894,12 @@ func (p *PersonalAccessTokenRequest) GetID() int64 { return *p.ID } -// GetOrganization returns the Organization field. -func (p *PersonalAccessTokenRequest) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (p *PersonalAccessTokenRequest) GetOrg() *Organization { if p == nil { return nil } - return p.Organization + return p.Org } // GetOwner returns the Owner field. @@ -15494,12 +15494,12 @@ func (p *PublicEvent) GetInstallation() *Installation { return p.Installation } -// GetOrganization returns the Organization field. -func (p *PublicEvent) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (p *PublicEvent) GetOrg() *Organization { if p == nil { return nil } - return p.Organization + return p.Org } // GetRepo returns the Repo field. @@ -16470,12 +16470,12 @@ func (p *PullRequestReviewCommentEvent) GetInstallation() *Installation { return p.Installation } -// GetOrganization returns the Organization field. -func (p *PullRequestReviewCommentEvent) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (p *PullRequestReviewCommentEvent) GetOrg() *Organization { if p == nil { return nil } - return p.Organization + return p.Org } // GetPullRequest returns the PullRequest field. @@ -16702,12 +16702,12 @@ func (p *PullRequestReviewThreadEvent) GetInstallation() *Installation { return p.Installation } -// GetOrganization returns the Organization field. -func (p *PullRequestReviewThreadEvent) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (p *PullRequestReviewThreadEvent) GetOrg() *Organization { if p == nil { return nil } - return p.Organization + return p.Org } // GetPullRequest returns the PullRequest field. @@ -17734,12 +17734,12 @@ func (r *ReleaseEvent) GetInstallation() *Installation { return r.Installation } -// GetOrganization returns the Organization field. -func (r *ReleaseEvent) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (r *ReleaseEvent) GetOrg() *Organization { if r == nil { return nil } - return r.Organization + return r.Org } // GetRelease returns the Release field. @@ -19830,12 +19830,12 @@ func (r *RepositoryVulnerabilityAlertEvent) GetInstallation() *Installation { return r.Installation } -// GetOrganization returns the Organization field. -func (r *RepositoryVulnerabilityAlertEvent) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (r *RepositoryVulnerabilityAlertEvent) GetOrg() *Organization { if r == nil { return nil } - return r.Organization + return r.Org } // GetRepository returns the Repository field. @@ -21686,12 +21686,12 @@ func (s *StatusEvent) GetName() string { return *s.Name } -// GetOrganization returns the Organization field. -func (s *StatusEvent) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (s *StatusEvent) GetOrg() *Organization { if s == nil { return nil } - return s.Organization + return s.Org } // GetRepo returns the Repo field. @@ -24014,12 +24014,12 @@ func (w *WatchEvent) GetInstallation() *Installation { return w.Installation } -// GetOrganization returns the Organization field. -func (w *WatchEvent) GetOrganization() *Organization { +// GetOrg returns the Org field. +func (w *WatchEvent) GetOrg() *Organization { if w == nil { return nil } - return w.Organization + return w.Org } // GetRepo returns the Repo field. diff --git a/github/github-accessors_test.go b/github/github-accessors_test.go index 6b81f722d5..d43ae1b0c2 100644 --- a/github/github-accessors_test.go +++ b/github/github-accessors_test.go @@ -6584,11 +6584,11 @@ func TestDeploymentEvent_GetInstallation(tt *testing.T) { d.GetInstallation() } -func TestDeploymentEvent_GetOrganization(tt *testing.T) { +func TestDeploymentEvent_GetOrg(tt *testing.T) { d := &DeploymentEvent{} - d.GetOrganization() + d.GetOrg() d = nil - d.GetOrganization() + d.GetOrg() } func TestDeploymentEvent_GetRepo(tt *testing.T) { @@ -6932,11 +6932,11 @@ func TestDeploymentStatusEvent_GetInstallation(tt *testing.T) { d.GetInstallation() } -func TestDeploymentStatusEvent_GetOrganization(tt *testing.T) { +func TestDeploymentStatusEvent_GetOrg(tt *testing.T) { d := &DeploymentStatusEvent{} - d.GetOrganization() + d.GetOrg() d = nil - d.GetOrganization() + d.GetOrg() } func TestDeploymentStatusEvent_GetRepo(tt *testing.T) { @@ -9039,11 +9039,11 @@ func TestGollumEvent_GetInstallation(tt *testing.T) { g.GetInstallation() } -func TestGollumEvent_GetOrganization(tt *testing.T) { +func TestGollumEvent_GetOrg(tt *testing.T) { g := &GollumEvent{} - g.GetOrganization() + g.GetOrg() g = nil - g.GetOrganization() + g.GetOrg() } func TestGollumEvent_GetRepo(tt *testing.T) { @@ -10094,11 +10094,11 @@ func TestInstallationEvent_GetInstallation(tt *testing.T) { i.GetInstallation() } -func TestInstallationEvent_GetOrganization(tt *testing.T) { +func TestInstallationEvent_GetOrg(tt *testing.T) { i := &InstallationEvent{} - i.GetOrganization() + i.GetOrg() i = nil - i.GetOrganization() + i.GetOrg() } func TestInstallationEvent_GetRequester(tt *testing.T) { @@ -10512,11 +10512,11 @@ func TestInstallationRepositoriesEvent_GetInstallation(tt *testing.T) { i.GetInstallation() } -func TestInstallationRepositoriesEvent_GetOrganization(tt *testing.T) { +func TestInstallationRepositoriesEvent_GetOrg(tt *testing.T) { i := &InstallationRepositoriesEvent{} - i.GetOrganization() + i.GetOrg() i = nil - i.GetOrganization() + i.GetOrg() } func TestInstallationRepositoriesEvent_GetRepositorySelection(tt *testing.T) { @@ -11697,11 +11697,11 @@ func TestIssuesEvent_GetMilestone(tt *testing.T) { i.GetMilestone() } -func TestIssuesEvent_GetOrganization(tt *testing.T) { +func TestIssuesEvent_GetOrg(tt *testing.T) { i := &IssuesEvent{} - i.GetOrganization() + i.GetOrg() i = nil - i.GetOrganization() + i.GetOrg() } func TestIssuesEvent_GetRepo(tt *testing.T) { @@ -12963,11 +12963,11 @@ func TestMarketplacePurchaseEvent_GetMarketplacePurchase(tt *testing.T) { m.GetMarketplacePurchase() } -func TestMarketplacePurchaseEvent_GetOrganization(tt *testing.T) { +func TestMarketplacePurchaseEvent_GetOrg(tt *testing.T) { m := &MarketplacePurchaseEvent{} - m.GetOrganization() + m.GetOrg() m = nil - m.GetOrganization() + m.GetOrg() } func TestMarketplacePurchaseEvent_GetPreviousMarketplacePurchase(tt *testing.T) { @@ -13018,11 +13018,11 @@ func TestMemberEvent_GetMember(tt *testing.T) { m.GetMember() } -func TestMemberEvent_GetOrganization(tt *testing.T) { +func TestMemberEvent_GetOrg(tt *testing.T) { m := &MemberEvent{} - m.GetOrganization() + m.GetOrg() m = nil - m.GetOrganization() + m.GetOrg() } func TestMemberEvent_GetRepo(tt *testing.T) { @@ -15632,11 +15632,11 @@ func TestPageBuildEvent_GetInstallation(tt *testing.T) { p.GetInstallation() } -func TestPageBuildEvent_GetOrganization(tt *testing.T) { +func TestPageBuildEvent_GetOrg(tt *testing.T) { p := &PageBuildEvent{} - p.GetOrganization() + p.GetOrg() p = nil - p.GetOrganization() + p.GetOrg() } func TestPageBuildEvent_GetRepo(tt *testing.T) { @@ -16282,11 +16282,11 @@ func TestPersonalAccessTokenRequest_GetID(tt *testing.T) { p.GetID() } -func TestPersonalAccessTokenRequest_GetOrganization(tt *testing.T) { +func TestPersonalAccessTokenRequest_GetOrg(tt *testing.T) { p := &PersonalAccessTokenRequest{} - p.GetOrganization() + p.GetOrg() p = nil - p.GetOrganization() + p.GetOrg() } func TestPersonalAccessTokenRequest_GetOwner(tt *testing.T) { @@ -18006,11 +18006,11 @@ func TestPublicEvent_GetInstallation(tt *testing.T) { p.GetInstallation() } -func TestPublicEvent_GetOrganization(tt *testing.T) { +func TestPublicEvent_GetOrg(tt *testing.T) { p := &PublicEvent{} - p.GetOrganization() + p.GetOrg() p = nil - p.GetOrganization() + p.GetOrg() } func TestPublicEvent_GetRepo(tt *testing.T) { @@ -19136,11 +19136,11 @@ func TestPullRequestReviewCommentEvent_GetInstallation(tt *testing.T) { p.GetInstallation() } -func TestPullRequestReviewCommentEvent_GetOrganization(tt *testing.T) { +func TestPullRequestReviewCommentEvent_GetOrg(tt *testing.T) { p := &PullRequestReviewCommentEvent{} - p.GetOrganization() + p.GetOrg() p = nil - p.GetOrganization() + p.GetOrg() } func TestPullRequestReviewCommentEvent_GetPullRequest(tt *testing.T) { @@ -19375,11 +19375,11 @@ func TestPullRequestReviewThreadEvent_GetInstallation(tt *testing.T) { p.GetInstallation() } -func TestPullRequestReviewThreadEvent_GetOrganization(tt *testing.T) { +func TestPullRequestReviewThreadEvent_GetOrg(tt *testing.T) { p := &PullRequestReviewThreadEvent{} - p.GetOrganization() + p.GetOrg() p = nil - p.GetOrganization() + p.GetOrg() } func TestPullRequestReviewThreadEvent_GetPullRequest(tt *testing.T) { @@ -20563,11 +20563,11 @@ func TestReleaseEvent_GetInstallation(tt *testing.T) { r.GetInstallation() } -func TestReleaseEvent_GetOrganization(tt *testing.T) { +func TestReleaseEvent_GetOrg(tt *testing.T) { r := &ReleaseEvent{} - r.GetOrganization() + r.GetOrg() r = nil - r.GetOrganization() + r.GetOrg() } func TestReleaseEvent_GetRelease(tt *testing.T) { @@ -23051,11 +23051,11 @@ func TestRepositoryVulnerabilityAlertEvent_GetInstallation(tt *testing.T) { r.GetInstallation() } -func TestRepositoryVulnerabilityAlertEvent_GetOrganization(tt *testing.T) { +func TestRepositoryVulnerabilityAlertEvent_GetOrg(tt *testing.T) { r := &RepositoryVulnerabilityAlertEvent{} - r.GetOrganization() + r.GetOrg() r = nil - r.GetOrganization() + r.GetOrg() } func TestRepositoryVulnerabilityAlertEvent_GetRepository(tt *testing.T) { @@ -25212,11 +25212,11 @@ func TestStatusEvent_GetName(tt *testing.T) { s.GetName() } -func TestStatusEvent_GetOrganization(tt *testing.T) { +func TestStatusEvent_GetOrg(tt *testing.T) { s := &StatusEvent{} - s.GetOrganization() + s.GetOrg() s = nil - s.GetOrganization() + s.GetOrg() } func TestStatusEvent_GetRepo(tt *testing.T) { @@ -27972,11 +27972,11 @@ func TestWatchEvent_GetInstallation(tt *testing.T) { w.GetInstallation() } -func TestWatchEvent_GetOrganization(tt *testing.T) { +func TestWatchEvent_GetOrg(tt *testing.T) { w := &WatchEvent{} - w.GetOrganization() + w.GetOrg() w = nil - w.GetOrganization() + w.GetOrg() } func TestWatchEvent_GetRepo(tt *testing.T) {