github.com/google/go-github/v74@v74.0.0/github/github-stringify_test.go (about)

     1  // Copyright 2019 The go-github AUTHORS. All rights reserved.
     2  //
     3  // Use of this source code is governed by a BSD-style
     4  // license that can be found in the LICENSE file.
     5  
     6  // Code generated by gen-stringify-tests; DO NOT EDIT.
     7  // Instead, please run "go generate ./..." as described here:
     8  // https://github.com/google/go-github/blob/master/CONTRIBUTING.md#submitting-a-patch
     9  
    10  package github
    11  
    12  import (
    13  	"testing"
    14  )
    15  
    16  func TestActionsAllowed_String(t *testing.T) {
    17  	t.Parallel()
    18  	v := ActionsAllowed{
    19  		GithubOwnedAllowed: Ptr(false),
    20  		VerifiedAllowed:    Ptr(false),
    21  		PatternsAllowed:    []string{""},
    22  	}
    23  	want := `github.ActionsAllowed{GithubOwnedAllowed:false, VerifiedAllowed:false, PatternsAllowed:[""]}`
    24  	if got := v.String(); got != want {
    25  		t.Errorf("ActionsAllowed.String = %v, want %v", got, want)
    26  	}
    27  }
    28  
    29  func TestActionsPermissions_String(t *testing.T) {
    30  	t.Parallel()
    31  	v := ActionsPermissions{
    32  		EnabledRepositories: Ptr(""),
    33  		AllowedActions:      Ptr(""),
    34  		SelectedActionsURL:  Ptr(""),
    35  	}
    36  	want := `github.ActionsPermissions{EnabledRepositories:"", AllowedActions:"", SelectedActionsURL:""}`
    37  	if got := v.String(); got != want {
    38  		t.Errorf("ActionsPermissions.String = %v, want %v", got, want)
    39  	}
    40  }
    41  
    42  func TestActionsPermissionsEnterprise_String(t *testing.T) {
    43  	t.Parallel()
    44  	v := ActionsPermissionsEnterprise{
    45  		EnabledOrganizations: Ptr(""),
    46  		AllowedActions:       Ptr(""),
    47  		SelectedActionsURL:   Ptr(""),
    48  	}
    49  	want := `github.ActionsPermissionsEnterprise{EnabledOrganizations:"", AllowedActions:"", SelectedActionsURL:""}`
    50  	if got := v.String(); got != want {
    51  		t.Errorf("ActionsPermissionsEnterprise.String = %v, want %v", got, want)
    52  	}
    53  }
    54  
    55  func TestActionsPermissionsRepository_String(t *testing.T) {
    56  	t.Parallel()
    57  	v := ActionsPermissionsRepository{
    58  		Enabled:            Ptr(false),
    59  		AllowedActions:     Ptr(""),
    60  		SelectedActionsURL: Ptr(""),
    61  	}
    62  	want := `github.ActionsPermissionsRepository{Enabled:false, AllowedActions:"", SelectedActionsURL:""}`
    63  	if got := v.String(); got != want {
    64  		t.Errorf("ActionsPermissionsRepository.String = %v, want %v", got, want)
    65  	}
    66  }
    67  
    68  func TestAdminStats_String(t *testing.T) {
    69  	t.Parallel()
    70  	v := AdminStats{
    71  		Issues:     &IssueStats{},
    72  		Hooks:      &HookStats{},
    73  		Milestones: &MilestoneStats{},
    74  		Orgs:       &OrgStats{},
    75  		Comments:   &CommentStats{},
    76  		Pages:      &PageStats{},
    77  		Users:      &UserStats{},
    78  		Gists:      &GistStats{},
    79  		Pulls:      &PullStats{},
    80  		Repos:      &RepoStats{},
    81  	}
    82  	want := `github.AdminStats{Issues:github.IssueStats{}, Hooks:github.HookStats{}, Milestones:github.MilestoneStats{}, Orgs:github.OrgStats{}, Comments:github.CommentStats{}, Pages:github.PageStats{}, Users:github.UserStats{}, Gists:github.GistStats{}, Pulls:github.PullStats{}, Repos:github.RepoStats{}}`
    83  	if got := v.String(); got != want {
    84  		t.Errorf("AdminStats.String = %v, want %v", got, want)
    85  	}
    86  }
    87  
    88  func TestAdvancedSecurity_String(t *testing.T) {
    89  	t.Parallel()
    90  	v := AdvancedSecurity{
    91  		Status: Ptr(""),
    92  	}
    93  	want := `github.AdvancedSecurity{Status:""}`
    94  	if got := v.String(); got != want {
    95  		t.Errorf("AdvancedSecurity.String = %v, want %v", got, want)
    96  	}
    97  }
    98  
    99  func TestAuthorization_String(t *testing.T) {
   100  	t.Parallel()
   101  	v := Authorization{
   102  		ID:             Ptr(int64(0)),
   103  		URL:            Ptr(""),
   104  		Scopes:         []Scope{ScopeNone},
   105  		Token:          Ptr(""),
   106  		TokenLastEight: Ptr(""),
   107  		HashedToken:    Ptr(""),
   108  		App:            &AuthorizationApp{},
   109  		Note:           Ptr(""),
   110  		NoteURL:        Ptr(""),
   111  		UpdatedAt:      &Timestamp{},
   112  		CreatedAt:      &Timestamp{},
   113  		Fingerprint:    Ptr(""),
   114  		User:           &User{},
   115  	}
   116  	want := `github.Authorization{ID:0, URL:"", Scopes:["(no scope)"], Token:"", TokenLastEight:"", HashedToken:"", App:github.AuthorizationApp{}, Note:"", NoteURL:"", UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, Fingerprint:"", User:github.User{}}`
   117  	if got := v.String(); got != want {
   118  		t.Errorf("Authorization.String = %v, want %v", got, want)
   119  	}
   120  }
   121  
   122  func TestAuthorizationApp_String(t *testing.T) {
   123  	t.Parallel()
   124  	v := AuthorizationApp{
   125  		URL:      Ptr(""),
   126  		Name:     Ptr(""),
   127  		ClientID: Ptr(""),
   128  	}
   129  	want := `github.AuthorizationApp{URL:"", Name:"", ClientID:""}`
   130  	if got := v.String(); got != want {
   131  		t.Errorf("AuthorizationApp.String = %v, want %v", got, want)
   132  	}
   133  }
   134  
   135  func TestAuthorizationRequest_String(t *testing.T) {
   136  	t.Parallel()
   137  	v := AuthorizationRequest{
   138  		Scopes:       []Scope{ScopeNone},
   139  		Note:         Ptr(""),
   140  		NoteURL:      Ptr(""),
   141  		ClientID:     Ptr(""),
   142  		ClientSecret: Ptr(""),
   143  		Fingerprint:  Ptr(""),
   144  	}
   145  	want := `github.AuthorizationRequest{Scopes:["(no scope)"], Note:"", NoteURL:"", ClientID:"", ClientSecret:"", Fingerprint:""}`
   146  	if got := v.String(); got != want {
   147  		t.Errorf("AuthorizationRequest.String = %v, want %v", got, want)
   148  	}
   149  }
   150  
   151  func TestAuthorizationUpdateRequest_String(t *testing.T) {
   152  	t.Parallel()
   153  	v := AuthorizationUpdateRequest{
   154  		Scopes:       []string{""},
   155  		AddScopes:    []string{""},
   156  		RemoveScopes: []string{""},
   157  		Note:         Ptr(""),
   158  		NoteURL:      Ptr(""),
   159  		Fingerprint:  Ptr(""),
   160  	}
   161  	want := `github.AuthorizationUpdateRequest{Scopes:[""], AddScopes:[""], RemoveScopes:[""], Note:"", NoteURL:"", Fingerprint:""}`
   162  	if got := v.String(); got != want {
   163  		t.Errorf("AuthorizationUpdateRequest.String = %v, want %v", got, want)
   164  	}
   165  }
   166  
   167  func TestCheckRun_String(t *testing.T) {
   168  	t.Parallel()
   169  	v := CheckRun{
   170  		ID:          Ptr(int64(0)),
   171  		NodeID:      Ptr(""),
   172  		HeadSHA:     Ptr(""),
   173  		ExternalID:  Ptr(""),
   174  		URL:         Ptr(""),
   175  		HTMLURL:     Ptr(""),
   176  		DetailsURL:  Ptr(""),
   177  		Status:      Ptr(""),
   178  		Conclusion:  Ptr(""),
   179  		StartedAt:   &Timestamp{},
   180  		CompletedAt: &Timestamp{},
   181  		Output:      &CheckRunOutput{},
   182  		Name:        Ptr(""),
   183  		CheckSuite:  &CheckSuite{},
   184  		App:         &App{},
   185  	}
   186  	want := `github.CheckRun{ID:0, NodeID:"", HeadSHA:"", ExternalID:"", URL:"", HTMLURL:"", DetailsURL:"", Status:"", Conclusion:"", StartedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, CompletedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, Output:github.CheckRunOutput{}, Name:"", CheckSuite:github.CheckSuite{}, App:github.App{}}`
   187  	if got := v.String(); got != want {
   188  		t.Errorf("CheckRun.String = %v, want %v", got, want)
   189  	}
   190  }
   191  
   192  func TestCheckSuite_String(t *testing.T) {
   193  	t.Parallel()
   194  	v := CheckSuite{
   195  		ID:                   Ptr(int64(0)),
   196  		NodeID:               Ptr(""),
   197  		HeadBranch:           Ptr(""),
   198  		HeadSHA:              Ptr(""),
   199  		URL:                  Ptr(""),
   200  		BeforeSHA:            Ptr(""),
   201  		AfterSHA:             Ptr(""),
   202  		Status:               Ptr(""),
   203  		Conclusion:           Ptr(""),
   204  		CreatedAt:            &Timestamp{},
   205  		UpdatedAt:            &Timestamp{},
   206  		App:                  &App{},
   207  		Repository:           &Repository{},
   208  		HeadCommit:           &Commit{},
   209  		LatestCheckRunsCount: Ptr(int64(0)),
   210  		Rerequestable:        Ptr(false),
   211  		RunsRerequestable:    Ptr(false),
   212  	}
   213  	want := `github.CheckSuite{ID:0, NodeID:"", HeadBranch:"", HeadSHA:"", URL:"", BeforeSHA:"", AfterSHA:"", Status:"", Conclusion:"", CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, App:github.App{}, Repository:github.Repository{}, HeadCommit:github.Commit{}, LatestCheckRunsCount:0, Rerequestable:false, RunsRerequestable:false}`
   214  	if got := v.String(); got != want {
   215  		t.Errorf("CheckSuite.String = %v, want %v", got, want)
   216  	}
   217  }
   218  
   219  func TestCodeOfConduct_String(t *testing.T) {
   220  	t.Parallel()
   221  	v := CodeOfConduct{
   222  		Name: Ptr(""),
   223  		Key:  Ptr(""),
   224  		URL:  Ptr(""),
   225  		Body: Ptr(""),
   226  	}
   227  	want := `github.CodeOfConduct{Name:"", Key:"", URL:"", Body:""}`
   228  	if got := v.String(); got != want {
   229  		t.Errorf("CodeOfConduct.String = %v, want %v", got, want)
   230  	}
   231  }
   232  
   233  func TestCodeResult_String(t *testing.T) {
   234  	t.Parallel()
   235  	v := CodeResult{
   236  		Name:       Ptr(""),
   237  		Path:       Ptr(""),
   238  		SHA:        Ptr(""),
   239  		HTMLURL:    Ptr(""),
   240  		Repository: &Repository{},
   241  	}
   242  	want := `github.CodeResult{Name:"", Path:"", SHA:"", HTMLURL:"", Repository:github.Repository{}}`
   243  	if got := v.String(); got != want {
   244  		t.Errorf("CodeResult.String = %v, want %v", got, want)
   245  	}
   246  }
   247  
   248  func TestCombinedStatus_String(t *testing.T) {
   249  	t.Parallel()
   250  	v := CombinedStatus{
   251  		State:         Ptr(""),
   252  		Name:          Ptr(""),
   253  		SHA:           Ptr(""),
   254  		TotalCount:    Ptr(0),
   255  		CommitURL:     Ptr(""),
   256  		RepositoryURL: Ptr(""),
   257  	}
   258  	want := `github.CombinedStatus{State:"", Name:"", SHA:"", TotalCount:0, CommitURL:"", RepositoryURL:""}`
   259  	if got := v.String(); got != want {
   260  		t.Errorf("CombinedStatus.String = %v, want %v", got, want)
   261  	}
   262  }
   263  
   264  func TestCommentStats_String(t *testing.T) {
   265  	t.Parallel()
   266  	v := CommentStats{
   267  		TotalCommitComments:      Ptr(0),
   268  		TotalGistComments:        Ptr(0),
   269  		TotalIssueComments:       Ptr(0),
   270  		TotalPullRequestComments: Ptr(0),
   271  	}
   272  	want := `github.CommentStats{TotalCommitComments:0, TotalGistComments:0, TotalIssueComments:0, TotalPullRequestComments:0}`
   273  	if got := v.String(); got != want {
   274  		t.Errorf("CommentStats.String = %v, want %v", got, want)
   275  	}
   276  }
   277  
   278  func TestCommit_String(t *testing.T) {
   279  	t.Parallel()
   280  	v := Commit{
   281  		SHA:          Ptr(""),
   282  		Author:       &CommitAuthor{},
   283  		Committer:    &CommitAuthor{},
   284  		Message:      Ptr(""),
   285  		Tree:         &Tree{},
   286  		HTMLURL:      Ptr(""),
   287  		URL:          Ptr(""),
   288  		Verification: &SignatureVerification{},
   289  		NodeID:       Ptr(""),
   290  		CommentCount: Ptr(0),
   291  	}
   292  	want := `github.Commit{SHA:"", Author:github.CommitAuthor{}, Committer:github.CommitAuthor{}, Message:"", Tree:github.Tree{}, HTMLURL:"", URL:"", Verification:github.SignatureVerification{}, NodeID:"", CommentCount:0}`
   293  	if got := v.String(); got != want {
   294  		t.Errorf("Commit.String = %v, want %v", got, want)
   295  	}
   296  }
   297  
   298  func TestCommitAuthor_String(t *testing.T) {
   299  	t.Parallel()
   300  	v := CommitAuthor{
   301  		Date:  &Timestamp{},
   302  		Name:  Ptr(""),
   303  		Email: Ptr(""),
   304  		Login: Ptr(""),
   305  	}
   306  	want := `github.CommitAuthor{Date:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, Name:"", Email:"", Login:""}`
   307  	if got := v.String(); got != want {
   308  		t.Errorf("CommitAuthor.String = %v, want %v", got, want)
   309  	}
   310  }
   311  
   312  func TestCommitFile_String(t *testing.T) {
   313  	t.Parallel()
   314  	v := CommitFile{
   315  		SHA:              Ptr(""),
   316  		Filename:         Ptr(""),
   317  		Additions:        Ptr(0),
   318  		Deletions:        Ptr(0),
   319  		Changes:          Ptr(0),
   320  		Status:           Ptr(""),
   321  		Patch:            Ptr(""),
   322  		BlobURL:          Ptr(""),
   323  		RawURL:           Ptr(""),
   324  		ContentsURL:      Ptr(""),
   325  		PreviousFilename: Ptr(""),
   326  	}
   327  	want := `github.CommitFile{SHA:"", Filename:"", Additions:0, Deletions:0, Changes:0, Status:"", Patch:"", BlobURL:"", RawURL:"", ContentsURL:"", PreviousFilename:""}`
   328  	if got := v.String(); got != want {
   329  		t.Errorf("CommitFile.String = %v, want %v", got, want)
   330  	}
   331  }
   332  
   333  func TestCommitStats_String(t *testing.T) {
   334  	t.Parallel()
   335  	v := CommitStats{
   336  		Additions: Ptr(0),
   337  		Deletions: Ptr(0),
   338  		Total:     Ptr(0),
   339  	}
   340  	want := `github.CommitStats{Additions:0, Deletions:0, Total:0}`
   341  	if got := v.String(); got != want {
   342  		t.Errorf("CommitStats.String = %v, want %v", got, want)
   343  	}
   344  }
   345  
   346  func TestCommitsComparison_String(t *testing.T) {
   347  	t.Parallel()
   348  	v := CommitsComparison{
   349  		BaseCommit:      &RepositoryCommit{},
   350  		MergeBaseCommit: &RepositoryCommit{},
   351  		Status:          Ptr(""),
   352  		AheadBy:         Ptr(0),
   353  		BehindBy:        Ptr(0),
   354  		TotalCommits:    Ptr(0),
   355  		HTMLURL:         Ptr(""),
   356  		PermalinkURL:    Ptr(""),
   357  		DiffURL:         Ptr(""),
   358  		PatchURL:        Ptr(""),
   359  		URL:             Ptr(""),
   360  	}
   361  	want := `github.CommitsComparison{BaseCommit:github.RepositoryCommit{}, MergeBaseCommit:github.RepositoryCommit{}, Status:"", AheadBy:0, BehindBy:0, TotalCommits:0, HTMLURL:"", PermalinkURL:"", DiffURL:"", PatchURL:"", URL:""}`
   362  	if got := v.String(); got != want {
   363  		t.Errorf("CommitsComparison.String = %v, want %v", got, want)
   364  	}
   365  }
   366  
   367  func TestContributorStats_String(t *testing.T) {
   368  	t.Parallel()
   369  	v := ContributorStats{
   370  		Author: &Contributor{},
   371  		Total:  Ptr(0),
   372  	}
   373  	want := `github.ContributorStats{Author:github.Contributor{}, Total:0}`
   374  	if got := v.String(); got != want {
   375  		t.Errorf("ContributorStats.String = %v, want %v", got, want)
   376  	}
   377  }
   378  
   379  func TestDependabotSecurityUpdates_String(t *testing.T) {
   380  	t.Parallel()
   381  	v := DependabotSecurityUpdates{
   382  		Status: Ptr(""),
   383  	}
   384  	want := `github.DependabotSecurityUpdates{Status:""}`
   385  	if got := v.String(); got != want {
   386  		t.Errorf("DependabotSecurityUpdates.String = %v, want %v", got, want)
   387  	}
   388  }
   389  
   390  func TestDiscussionComment_String(t *testing.T) {
   391  	t.Parallel()
   392  	v := DiscussionComment{
   393  		Author:        &User{},
   394  		Body:          Ptr(""),
   395  		BodyHTML:      Ptr(""),
   396  		BodyVersion:   Ptr(""),
   397  		CreatedAt:     &Timestamp{},
   398  		LastEditedAt:  &Timestamp{},
   399  		DiscussionURL: Ptr(""),
   400  		HTMLURL:       Ptr(""),
   401  		NodeID:        Ptr(""),
   402  		Number:        Ptr(0),
   403  		UpdatedAt:     &Timestamp{},
   404  		URL:           Ptr(""),
   405  		Reactions:     &Reactions{},
   406  	}
   407  	want := `github.DiscussionComment{Author:github.User{}, Body:"", BodyHTML:"", BodyVersion:"", CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, LastEditedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, DiscussionURL:"", HTMLURL:"", NodeID:"", Number:0, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, URL:"", Reactions:github.Reactions{}}`
   408  	if got := v.String(); got != want {
   409  		t.Errorf("DiscussionComment.String = %v, want %v", got, want)
   410  	}
   411  }
   412  
   413  func TestDraftReviewComment_String(t *testing.T) {
   414  	t.Parallel()
   415  	v := DraftReviewComment{
   416  		Path:      Ptr(""),
   417  		Position:  Ptr(0),
   418  		Body:      Ptr(""),
   419  		StartSide: Ptr(""),
   420  		Side:      Ptr(""),
   421  		StartLine: Ptr(0),
   422  		Line:      Ptr(0),
   423  	}
   424  	want := `github.DraftReviewComment{Path:"", Position:0, Body:"", StartSide:"", Side:"", StartLine:0, Line:0}`
   425  	if got := v.String(); got != want {
   426  		t.Errorf("DraftReviewComment.String = %v, want %v", got, want)
   427  	}
   428  }
   429  
   430  func TestEnterprise_String(t *testing.T) {
   431  	t.Parallel()
   432  	v := Enterprise{
   433  		ID:          Ptr(0),
   434  		Slug:        Ptr(""),
   435  		Name:        Ptr(""),
   436  		NodeID:      Ptr(""),
   437  		AvatarURL:   Ptr(""),
   438  		Description: Ptr(""),
   439  		WebsiteURL:  Ptr(""),
   440  		HTMLURL:     Ptr(""),
   441  		CreatedAt:   &Timestamp{},
   442  		UpdatedAt:   &Timestamp{},
   443  	}
   444  	want := `github.Enterprise{ID:0, Slug:"", Name:"", NodeID:"", AvatarURL:"", Description:"", WebsiteURL:"", HTMLURL:"", CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}}`
   445  	if got := v.String(); got != want {
   446  		t.Errorf("Enterprise.String = %v, want %v", got, want)
   447  	}
   448  }
   449  
   450  func TestEvent_String(t *testing.T) {
   451  	t.Parallel()
   452  	v := Event{
   453  		Type:      Ptr(""),
   454  		Public:    Ptr(false),
   455  		Repo:      &Repository{},
   456  		Actor:     &User{},
   457  		Org:       &Organization{},
   458  		CreatedAt: &Timestamp{},
   459  		ID:        Ptr(""),
   460  	}
   461  	want := `github.Event{Type:"", Public:false, Repo:github.Repository{}, Actor:github.User{}, Org:github.Organization{}, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, ID:""}`
   462  	if got := v.String(); got != want {
   463  		t.Errorf("Event.String = %v, want %v", got, want)
   464  	}
   465  }
   466  
   467  func TestGPGKey_String(t *testing.T) {
   468  	t.Parallel()
   469  	v := GPGKey{
   470  		ID:                Ptr(int64(0)),
   471  		PrimaryKeyID:      Ptr(int64(0)),
   472  		KeyID:             Ptr(""),
   473  		RawKey:            Ptr(""),
   474  		PublicKey:         Ptr(""),
   475  		CanSign:           Ptr(false),
   476  		CanEncryptComms:   Ptr(false),
   477  		CanEncryptStorage: Ptr(false),
   478  		CanCertify:        Ptr(false),
   479  		CreatedAt:         &Timestamp{},
   480  		ExpiresAt:         &Timestamp{},
   481  	}
   482  	want := `github.GPGKey{ID:0, PrimaryKeyID:0, KeyID:"", RawKey:"", PublicKey:"", CanSign:false, CanEncryptComms:false, CanEncryptStorage:false, CanCertify:false, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, ExpiresAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}}`
   483  	if got := v.String(); got != want {
   484  		t.Errorf("GPGKey.String = %v, want %v", got, want)
   485  	}
   486  }
   487  
   488  func TestGist_String(t *testing.T) {
   489  	t.Parallel()
   490  	v := Gist{
   491  		ID:          Ptr(""),
   492  		Description: Ptr(""),
   493  		Public:      Ptr(false),
   494  		Owner:       &User{},
   495  		Comments:    Ptr(0),
   496  		HTMLURL:     Ptr(""),
   497  		GitPullURL:  Ptr(""),
   498  		GitPushURL:  Ptr(""),
   499  		CreatedAt:   &Timestamp{},
   500  		UpdatedAt:   &Timestamp{},
   501  		NodeID:      Ptr(""),
   502  	}
   503  	want := `github.Gist{ID:"", Description:"", Public:false, Owner:github.User{}, Comments:0, HTMLURL:"", GitPullURL:"", GitPushURL:"", CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, NodeID:""}`
   504  	if got := v.String(); got != want {
   505  		t.Errorf("Gist.String = %v, want %v", got, want)
   506  	}
   507  }
   508  
   509  func TestGistComment_String(t *testing.T) {
   510  	t.Parallel()
   511  	v := GistComment{
   512  		ID:        Ptr(int64(0)),
   513  		URL:       Ptr(""),
   514  		Body:      Ptr(""),
   515  		User:      &User{},
   516  		CreatedAt: &Timestamp{},
   517  	}
   518  	want := `github.GistComment{ID:0, URL:"", Body:"", User:github.User{}, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}}`
   519  	if got := v.String(); got != want {
   520  		t.Errorf("GistComment.String = %v, want %v", got, want)
   521  	}
   522  }
   523  
   524  func TestGistCommit_String(t *testing.T) {
   525  	t.Parallel()
   526  	v := GistCommit{
   527  		URL:          Ptr(""),
   528  		Version:      Ptr(""),
   529  		User:         &User{},
   530  		ChangeStatus: &CommitStats{},
   531  		CommittedAt:  &Timestamp{},
   532  		NodeID:       Ptr(""),
   533  	}
   534  	want := `github.GistCommit{URL:"", Version:"", User:github.User{}, ChangeStatus:github.CommitStats{}, CommittedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, NodeID:""}`
   535  	if got := v.String(); got != want {
   536  		t.Errorf("GistCommit.String = %v, want %v", got, want)
   537  	}
   538  }
   539  
   540  func TestGistFile_String(t *testing.T) {
   541  	t.Parallel()
   542  	v := GistFile{
   543  		Size:     Ptr(0),
   544  		Filename: Ptr(""),
   545  		Language: Ptr(""),
   546  		Type:     Ptr(""),
   547  		RawURL:   Ptr(""),
   548  		Content:  Ptr(""),
   549  	}
   550  	want := `github.GistFile{Size:0, Filename:"", Language:"", Type:"", RawURL:"", Content:""}`
   551  	if got := v.String(); got != want {
   552  		t.Errorf("GistFile.String = %v, want %v", got, want)
   553  	}
   554  }
   555  
   556  func TestGistFork_String(t *testing.T) {
   557  	t.Parallel()
   558  	v := GistFork{
   559  		URL:       Ptr(""),
   560  		User:      &User{},
   561  		ID:        Ptr(""),
   562  		CreatedAt: &Timestamp{},
   563  		UpdatedAt: &Timestamp{},
   564  		NodeID:    Ptr(""),
   565  	}
   566  	want := `github.GistFork{URL:"", User:github.User{}, ID:"", CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, NodeID:""}`
   567  	if got := v.String(); got != want {
   568  		t.Errorf("GistFork.String = %v, want %v", got, want)
   569  	}
   570  }
   571  
   572  func TestGistStats_String(t *testing.T) {
   573  	t.Parallel()
   574  	v := GistStats{
   575  		TotalGists:   Ptr(0),
   576  		PrivateGists: Ptr(0),
   577  		PublicGists:  Ptr(0),
   578  	}
   579  	want := `github.GistStats{TotalGists:0, PrivateGists:0, PublicGists:0}`
   580  	if got := v.String(); got != want {
   581  		t.Errorf("GistStats.String = %v, want %v", got, want)
   582  	}
   583  }
   584  
   585  func TestGitObject_String(t *testing.T) {
   586  	t.Parallel()
   587  	v := GitObject{
   588  		Type: Ptr(""),
   589  		SHA:  Ptr(""),
   590  		URL:  Ptr(""),
   591  	}
   592  	want := `github.GitObject{Type:"", SHA:"", URL:""}`
   593  	if got := v.String(); got != want {
   594  		t.Errorf("GitObject.String = %v, want %v", got, want)
   595  	}
   596  }
   597  
   598  func TestGitignore_String(t *testing.T) {
   599  	t.Parallel()
   600  	v := Gitignore{
   601  		Name:   Ptr(""),
   602  		Source: Ptr(""),
   603  	}
   604  	want := `github.Gitignore{Name:"", Source:""}`
   605  	if got := v.String(); got != want {
   606  		t.Errorf("Gitignore.String = %v, want %v", got, want)
   607  	}
   608  }
   609  
   610  func TestGrant_String(t *testing.T) {
   611  	t.Parallel()
   612  	v := Grant{
   613  		ID:        Ptr(int64(0)),
   614  		URL:       Ptr(""),
   615  		App:       &AuthorizationApp{},
   616  		CreatedAt: &Timestamp{},
   617  		UpdatedAt: &Timestamp{},
   618  		Scopes:    []string{""},
   619  	}
   620  	want := `github.Grant{ID:0, URL:"", App:github.AuthorizationApp{}, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, Scopes:[""]}`
   621  	if got := v.String(); got != want {
   622  		t.Errorf("Grant.String = %v, want %v", got, want)
   623  	}
   624  }
   625  
   626  func TestHeadCommit_String(t *testing.T) {
   627  	t.Parallel()
   628  	v := HeadCommit{
   629  		Message:   Ptr(""),
   630  		Author:    &CommitAuthor{},
   631  		URL:       Ptr(""),
   632  		Distinct:  Ptr(false),
   633  		SHA:       Ptr(""),
   634  		ID:        Ptr(""),
   635  		TreeID:    Ptr(""),
   636  		Timestamp: &Timestamp{},
   637  		Committer: &CommitAuthor{},
   638  		Added:     []string{""},
   639  		Removed:   []string{""},
   640  		Modified:  []string{""},
   641  	}
   642  	want := `github.HeadCommit{Message:"", Author:github.CommitAuthor{}, URL:"", Distinct:false, SHA:"", ID:"", TreeID:"", Timestamp:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, Committer:github.CommitAuthor{}, Added:[""], Removed:[""], Modified:[""]}`
   643  	if got := v.String(); got != want {
   644  		t.Errorf("HeadCommit.String = %v, want %v", got, want)
   645  	}
   646  }
   647  
   648  func TestHook_String(t *testing.T) {
   649  	t.Parallel()
   650  	v := Hook{
   651  		CreatedAt: &Timestamp{},
   652  		UpdatedAt: &Timestamp{},
   653  		URL:       Ptr(""),
   654  		ID:        Ptr(int64(0)),
   655  		Type:      Ptr(""),
   656  		Name:      Ptr(""),
   657  		TestURL:   Ptr(""),
   658  		PingURL:   Ptr(""),
   659  		Config:    &HookConfig{},
   660  		Events:    []string{""},
   661  		Active:    Ptr(false),
   662  	}
   663  	want := `github.Hook{CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, URL:"", ID:0, Type:"", Name:"", TestURL:"", PingURL:"", Config:github.HookConfig{}, Events:[""], Active:false}`
   664  	if got := v.String(); got != want {
   665  		t.Errorf("Hook.String = %v, want %v", got, want)
   666  	}
   667  }
   668  
   669  func TestHookDelivery_String(t *testing.T) {
   670  	t.Parallel()
   671  	v := HookDelivery{
   672  		ID:             Ptr(int64(0)),
   673  		GUID:           Ptr(""),
   674  		DeliveredAt:    &Timestamp{},
   675  		Redelivery:     Ptr(false),
   676  		Duration:       Ptr(0.0),
   677  		Status:         Ptr(""),
   678  		StatusCode:     Ptr(0),
   679  		Event:          Ptr(""),
   680  		Action:         Ptr(""),
   681  		InstallationID: Ptr(int64(0)),
   682  		RepositoryID:   Ptr(int64(0)),
   683  		Request:        &HookRequest{},
   684  		Response:       &HookResponse{},
   685  	}
   686  	want := `github.HookDelivery{ID:0, GUID:"", DeliveredAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, Redelivery:false, Duration:0, Status:"", StatusCode:0, Event:"", Action:"", InstallationID:0, RepositoryID:0, Request:github.HookRequest{}, Response:github.HookResponse{}}`
   687  	if got := v.String(); got != want {
   688  		t.Errorf("HookDelivery.String = %v, want %v", got, want)
   689  	}
   690  }
   691  
   692  func TestHookStats_String(t *testing.T) {
   693  	t.Parallel()
   694  	v := HookStats{
   695  		TotalHooks:    Ptr(0),
   696  		ActiveHooks:   Ptr(0),
   697  		InactiveHooks: Ptr(0),
   698  	}
   699  	want := `github.HookStats{TotalHooks:0, ActiveHooks:0, InactiveHooks:0}`
   700  	if got := v.String(); got != want {
   701  		t.Errorf("HookStats.String = %v, want %v", got, want)
   702  	}
   703  }
   704  
   705  func TestImport_String(t *testing.T) {
   706  	t.Parallel()
   707  	v := Import{
   708  		VCSURL:          Ptr(""),
   709  		VCS:             Ptr(""),
   710  		VCSUsername:     Ptr(""),
   711  		VCSPassword:     Ptr(""),
   712  		TFVCProject:     Ptr(""),
   713  		UseLFS:          Ptr(""),
   714  		HasLargeFiles:   Ptr(false),
   715  		LargeFilesSize:  Ptr(0),
   716  		LargeFilesCount: Ptr(0),
   717  		Status:          Ptr(""),
   718  		CommitCount:     Ptr(0),
   719  		StatusText:      Ptr(""),
   720  		AuthorsCount:    Ptr(0),
   721  		Percent:         Ptr(0),
   722  		PushPercent:     Ptr(0),
   723  		URL:             Ptr(""),
   724  		HTMLURL:         Ptr(""),
   725  		AuthorsURL:      Ptr(""),
   726  		RepositoryURL:   Ptr(""),
   727  		Message:         Ptr(""),
   728  		FailedStep:      Ptr(""),
   729  		HumanName:       Ptr(""),
   730  	}
   731  	want := `github.Import{VCSURL:"", VCS:"", VCSUsername:"", VCSPassword:"", TFVCProject:"", UseLFS:"", HasLargeFiles:false, LargeFilesSize:0, LargeFilesCount:0, Status:"", CommitCount:0, StatusText:"", AuthorsCount:0, Percent:0, PushPercent:0, URL:"", HTMLURL:"", AuthorsURL:"", RepositoryURL:"", Message:"", FailedStep:"", HumanName:""}`
   732  	if got := v.String(); got != want {
   733  		t.Errorf("Import.String = %v, want %v", got, want)
   734  	}
   735  }
   736  
   737  func TestInstallation_String(t *testing.T) {
   738  	t.Parallel()
   739  	v := Installation{
   740  		ID:                     Ptr(int64(0)),
   741  		NodeID:                 Ptr(""),
   742  		AppID:                  Ptr(int64(0)),
   743  		AppSlug:                Ptr(""),
   744  		TargetID:               Ptr(int64(0)),
   745  		Account:                &User{},
   746  		AccessTokensURL:        Ptr(""),
   747  		RepositoriesURL:        Ptr(""),
   748  		HTMLURL:                Ptr(""),
   749  		TargetType:             Ptr(""),
   750  		SingleFileName:         Ptr(""),
   751  		RepositorySelection:    Ptr(""),
   752  		Events:                 []string{""},
   753  		SingleFilePaths:        []string{""},
   754  		Permissions:            &InstallationPermissions{},
   755  		CreatedAt:              &Timestamp{},
   756  		UpdatedAt:              &Timestamp{},
   757  		HasMultipleSingleFiles: Ptr(false),
   758  		SuspendedBy:            &User{},
   759  		SuspendedAt:            &Timestamp{},
   760  	}
   761  	want := `github.Installation{ID:0, NodeID:"", AppID:0, AppSlug:"", TargetID:0, Account:github.User{}, AccessTokensURL:"", RepositoriesURL:"", HTMLURL:"", TargetType:"", SingleFileName:"", RepositorySelection:"", Events:[""], SingleFilePaths:[""], Permissions:github.InstallationPermissions{}, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, HasMultipleSingleFiles:false, SuspendedBy:github.User{}, SuspendedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}}`
   762  	if got := v.String(); got != want {
   763  		t.Errorf("Installation.String = %v, want %v", got, want)
   764  	}
   765  }
   766  
   767  func TestInvitation_String(t *testing.T) {
   768  	t.Parallel()
   769  	v := Invitation{
   770  		ID:                Ptr(int64(0)),
   771  		NodeID:            Ptr(""),
   772  		Login:             Ptr(""),
   773  		Email:             Ptr(""),
   774  		Role:              Ptr(""),
   775  		CreatedAt:         &Timestamp{},
   776  		Inviter:           &User{},
   777  		TeamCount:         Ptr(0),
   778  		InvitationTeamURL: Ptr(""),
   779  		FailedAt:          &Timestamp{},
   780  		FailedReason:      Ptr(""),
   781  	}
   782  	want := `github.Invitation{ID:0, NodeID:"", Login:"", Email:"", Role:"", CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, Inviter:github.User{}, TeamCount:0, InvitationTeamURL:"", FailedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, FailedReason:""}`
   783  	if got := v.String(); got != want {
   784  		t.Errorf("Invitation.String = %v, want %v", got, want)
   785  	}
   786  }
   787  
   788  func TestIssue_String(t *testing.T) {
   789  	t.Parallel()
   790  	v := Issue{
   791  		ID:                Ptr(int64(0)),
   792  		Number:            Ptr(0),
   793  		State:             Ptr(""),
   794  		StateReason:       Ptr(""),
   795  		Locked:            Ptr(false),
   796  		Title:             Ptr(""),
   797  		Body:              Ptr(""),
   798  		AuthorAssociation: Ptr(""),
   799  		User:              &User{},
   800  		Assignee:          &User{},
   801  		Comments:          Ptr(0),
   802  		ClosedAt:          &Timestamp{},
   803  		CreatedAt:         &Timestamp{},
   804  		UpdatedAt:         &Timestamp{},
   805  		ClosedBy:          &User{},
   806  		URL:               Ptr(""),
   807  		HTMLURL:           Ptr(""),
   808  		CommentsURL:       Ptr(""),
   809  		EventsURL:         Ptr(""),
   810  		LabelsURL:         Ptr(""),
   811  		RepositoryURL:     Ptr(""),
   812  		Milestone:         &Milestone{},
   813  		PullRequestLinks:  &PullRequestLinks{},
   814  		Repository:        &Repository{},
   815  		Reactions:         &Reactions{},
   816  		NodeID:            Ptr(""),
   817  		Draft:             Ptr(false),
   818  		Type:              &IssueType{},
   819  		ActiveLockReason:  Ptr(""),
   820  	}
   821  	want := `github.Issue{ID:0, Number:0, State:"", StateReason:"", Locked:false, Title:"", Body:"", AuthorAssociation:"", User:github.User{}, Assignee:github.User{}, Comments:0, ClosedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, ClosedBy:github.User{}, URL:"", HTMLURL:"", CommentsURL:"", EventsURL:"", LabelsURL:"", RepositoryURL:"", Milestone:github.Milestone{}, PullRequestLinks:github.PullRequestLinks{}, Repository:github.Repository{}, Reactions:github.Reactions{}, NodeID:"", Draft:false, Type:github.IssueType{}, ActiveLockReason:""}`
   822  	if got := v.String(); got != want {
   823  		t.Errorf("Issue.String = %v, want %v", got, want)
   824  	}
   825  }
   826  
   827  func TestIssueComment_String(t *testing.T) {
   828  	t.Parallel()
   829  	v := IssueComment{
   830  		ID:                Ptr(int64(0)),
   831  		NodeID:            Ptr(""),
   832  		Body:              Ptr(""),
   833  		User:              &User{},
   834  		Reactions:         &Reactions{},
   835  		CreatedAt:         &Timestamp{},
   836  		UpdatedAt:         &Timestamp{},
   837  		AuthorAssociation: Ptr(""),
   838  		URL:               Ptr(""),
   839  		HTMLURL:           Ptr(""),
   840  		IssueURL:          Ptr(""),
   841  	}
   842  	want := `github.IssueComment{ID:0, NodeID:"", Body:"", User:github.User{}, Reactions:github.Reactions{}, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, AuthorAssociation:"", URL:"", HTMLURL:"", IssueURL:""}`
   843  	if got := v.String(); got != want {
   844  		t.Errorf("IssueComment.String = %v, want %v", got, want)
   845  	}
   846  }
   847  
   848  func TestIssueStats_String(t *testing.T) {
   849  	t.Parallel()
   850  	v := IssueStats{
   851  		TotalIssues:  Ptr(0),
   852  		OpenIssues:   Ptr(0),
   853  		ClosedIssues: Ptr(0),
   854  	}
   855  	want := `github.IssueStats{TotalIssues:0, OpenIssues:0, ClosedIssues:0}`
   856  	if got := v.String(); got != want {
   857  		t.Errorf("IssueStats.String = %v, want %v", got, want)
   858  	}
   859  }
   860  
   861  func TestKey_String(t *testing.T) {
   862  	t.Parallel()
   863  	v := Key{
   864  		ID:        Ptr(int64(0)),
   865  		Key:       Ptr(""),
   866  		URL:       Ptr(""),
   867  		Title:     Ptr(""),
   868  		ReadOnly:  Ptr(false),
   869  		Verified:  Ptr(false),
   870  		CreatedAt: &Timestamp{},
   871  		AddedBy:   Ptr(""),
   872  		LastUsed:  &Timestamp{},
   873  	}
   874  	want := `github.Key{ID:0, Key:"", URL:"", Title:"", ReadOnly:false, Verified:false, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, AddedBy:"", LastUsed:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}}`
   875  	if got := v.String(); got != want {
   876  		t.Errorf("Key.String = %v, want %v", got, want)
   877  	}
   878  }
   879  
   880  func TestLabel_String(t *testing.T) {
   881  	t.Parallel()
   882  	v := Label{
   883  		ID:          Ptr(int64(0)),
   884  		URL:         Ptr(""),
   885  		Name:        Ptr(""),
   886  		Color:       Ptr(""),
   887  		Description: Ptr(""),
   888  		Default:     Ptr(false),
   889  		NodeID:      Ptr(""),
   890  	}
   891  	want := `github.Label{ID:0, URL:"", Name:"", Color:"", Description:"", Default:false, NodeID:""}`
   892  	if got := v.String(); got != want {
   893  		t.Errorf("Label.String = %v, want %v", got, want)
   894  	}
   895  }
   896  
   897  func TestLabelResult_String(t *testing.T) {
   898  	t.Parallel()
   899  	v := LabelResult{
   900  		ID:          Ptr(int64(0)),
   901  		URL:         Ptr(""),
   902  		Name:        Ptr(""),
   903  		Color:       Ptr(""),
   904  		Default:     Ptr(false),
   905  		Description: Ptr(""),
   906  		Score:       Ptr(0.0),
   907  	}
   908  	want := `github.LabelResult{ID:0, URL:"", Name:"", Color:"", Default:false, Description:"", Score:0}`
   909  	if got := v.String(); got != want {
   910  		t.Errorf("LabelResult.String = %v, want %v", got, want)
   911  	}
   912  }
   913  
   914  func TestLargeFile_String(t *testing.T) {
   915  	t.Parallel()
   916  	v := LargeFile{
   917  		RefName: Ptr(""),
   918  		Path:    Ptr(""),
   919  		OID:     Ptr(""),
   920  		Size:    Ptr(0),
   921  	}
   922  	want := `github.LargeFile{RefName:"", Path:"", OID:"", Size:0}`
   923  	if got := v.String(); got != want {
   924  		t.Errorf("LargeFile.String = %v, want %v", got, want)
   925  	}
   926  }
   927  
   928  func TestLicense_String(t *testing.T) {
   929  	t.Parallel()
   930  	v := License{
   931  		Key:            Ptr(""),
   932  		Name:           Ptr(""),
   933  		URL:            Ptr(""),
   934  		SPDXID:         Ptr(""),
   935  		HTMLURL:        Ptr(""),
   936  		Featured:       Ptr(false),
   937  		Description:    Ptr(""),
   938  		Implementation: Ptr(""),
   939  		Body:           Ptr(""),
   940  	}
   941  	want := `github.License{Key:"", Name:"", URL:"", SPDXID:"", HTMLURL:"", Featured:false, Description:"", Implementation:"", Body:""}`
   942  	if got := v.String(); got != want {
   943  		t.Errorf("License.String = %v, want %v", got, want)
   944  	}
   945  }
   946  
   947  func TestMembership_String(t *testing.T) {
   948  	t.Parallel()
   949  	v := Membership{
   950  		URL:             Ptr(""),
   951  		State:           Ptr(""),
   952  		Role:            Ptr(""),
   953  		OrganizationURL: Ptr(""),
   954  		Organization:    &Organization{},
   955  		User:            &User{},
   956  	}
   957  	want := `github.Membership{URL:"", State:"", Role:"", OrganizationURL:"", Organization:github.Organization{}, User:github.User{}}`
   958  	if got := v.String(); got != want {
   959  		t.Errorf("Membership.String = %v, want %v", got, want)
   960  	}
   961  }
   962  
   963  func TestMigration_String(t *testing.T) {
   964  	t.Parallel()
   965  	v := Migration{
   966  		ID:                 Ptr(int64(0)),
   967  		GUID:               Ptr(""),
   968  		State:              Ptr(""),
   969  		LockRepositories:   Ptr(false),
   970  		ExcludeAttachments: Ptr(false),
   971  		URL:                Ptr(""),
   972  		CreatedAt:          Ptr(""),
   973  		UpdatedAt:          Ptr(""),
   974  	}
   975  	want := `github.Migration{ID:0, GUID:"", State:"", LockRepositories:false, ExcludeAttachments:false, URL:"", CreatedAt:"", UpdatedAt:""}`
   976  	if got := v.String(); got != want {
   977  		t.Errorf("Migration.String = %v, want %v", got, want)
   978  	}
   979  }
   980  
   981  func TestMilestone_String(t *testing.T) {
   982  	t.Parallel()
   983  	v := Milestone{
   984  		URL:          Ptr(""),
   985  		HTMLURL:      Ptr(""),
   986  		LabelsURL:    Ptr(""),
   987  		ID:           Ptr(int64(0)),
   988  		Number:       Ptr(0),
   989  		State:        Ptr(""),
   990  		Title:        Ptr(""),
   991  		Description:  Ptr(""),
   992  		Creator:      &User{},
   993  		OpenIssues:   Ptr(0),
   994  		ClosedIssues: Ptr(0),
   995  		CreatedAt:    &Timestamp{},
   996  		UpdatedAt:    &Timestamp{},
   997  		ClosedAt:     &Timestamp{},
   998  		DueOn:        &Timestamp{},
   999  		NodeID:       Ptr(""),
  1000  	}
  1001  	want := `github.Milestone{URL:"", HTMLURL:"", LabelsURL:"", ID:0, Number:0, State:"", Title:"", Description:"", Creator:github.User{}, OpenIssues:0, ClosedIssues:0, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, ClosedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, DueOn:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, NodeID:""}`
  1002  	if got := v.String(); got != want {
  1003  		t.Errorf("Milestone.String = %v, want %v", got, want)
  1004  	}
  1005  }
  1006  
  1007  func TestMilestoneStats_String(t *testing.T) {
  1008  	t.Parallel()
  1009  	v := MilestoneStats{
  1010  		TotalMilestones:  Ptr(0),
  1011  		OpenMilestones:   Ptr(0),
  1012  		ClosedMilestones: Ptr(0),
  1013  	}
  1014  	want := `github.MilestoneStats{TotalMilestones:0, OpenMilestones:0, ClosedMilestones:0}`
  1015  	if got := v.String(); got != want {
  1016  		t.Errorf("MilestoneStats.String = %v, want %v", got, want)
  1017  	}
  1018  }
  1019  
  1020  func TestNewTeam_String(t *testing.T) {
  1021  	t.Parallel()
  1022  	v := NewTeam{
  1023  		Name:                "",
  1024  		Description:         Ptr(""),
  1025  		Maintainers:         []string{""},
  1026  		RepoNames:           []string{""},
  1027  		ParentTeamID:        Ptr(int64(0)),
  1028  		NotificationSetting: Ptr(""),
  1029  		Permission:          Ptr(""),
  1030  		Privacy:             Ptr(""),
  1031  		LDAPDN:              Ptr(""),
  1032  	}
  1033  	want := `github.NewTeam{Name:"", Description:"", Maintainers:[""], RepoNames:[""], ParentTeamID:0, NotificationSetting:"", Permission:"", Privacy:"", LDAPDN:""}`
  1034  	if got := v.String(); got != want {
  1035  		t.Errorf("NewTeam.String = %v, want %v", got, want)
  1036  	}
  1037  }
  1038  
  1039  func TestOAuthAPP_String(t *testing.T) {
  1040  	t.Parallel()
  1041  	v := OAuthAPP{
  1042  		URL:      Ptr(""),
  1043  		Name:     Ptr(""),
  1044  		ClientID: Ptr(""),
  1045  	}
  1046  	want := `github.OAuthAPP{URL:"", Name:"", ClientID:""}`
  1047  	if got := v.String(); got != want {
  1048  		t.Errorf("OAuthAPP.String = %v, want %v", got, want)
  1049  	}
  1050  }
  1051  
  1052  func TestOrgStats_String(t *testing.T) {
  1053  	t.Parallel()
  1054  	v := OrgStats{
  1055  		TotalOrgs:        Ptr(0),
  1056  		DisabledOrgs:     Ptr(0),
  1057  		TotalTeams:       Ptr(0),
  1058  		TotalTeamMembers: Ptr(0),
  1059  	}
  1060  	want := `github.OrgStats{TotalOrgs:0, DisabledOrgs:0, TotalTeams:0, TotalTeamMembers:0}`
  1061  	if got := v.String(); got != want {
  1062  		t.Errorf("OrgStats.String = %v, want %v", got, want)
  1063  	}
  1064  }
  1065  
  1066  func TestOrganization_String(t *testing.T) {
  1067  	t.Parallel()
  1068  	v := Organization{
  1069  		Login:                                Ptr(""),
  1070  		ID:                                   Ptr(int64(0)),
  1071  		NodeID:                               Ptr(""),
  1072  		AvatarURL:                            Ptr(""),
  1073  		HTMLURL:                              Ptr(""),
  1074  		Name:                                 Ptr(""),
  1075  		Company:                              Ptr(""),
  1076  		Blog:                                 Ptr(""),
  1077  		Location:                             Ptr(""),
  1078  		Email:                                Ptr(""),
  1079  		TwitterUsername:                      Ptr(""),
  1080  		Description:                          Ptr(""),
  1081  		PublicRepos:                          Ptr(0),
  1082  		PublicGists:                          Ptr(0),
  1083  		Followers:                            Ptr(0),
  1084  		Following:                            Ptr(0),
  1085  		CreatedAt:                            &Timestamp{},
  1086  		UpdatedAt:                            &Timestamp{},
  1087  		TotalPrivateRepos:                    Ptr(int64(0)),
  1088  		OwnedPrivateRepos:                    Ptr(int64(0)),
  1089  		PrivateGists:                         Ptr(0),
  1090  		DiskUsage:                            Ptr(0),
  1091  		Collaborators:                        Ptr(0),
  1092  		BillingEmail:                         Ptr(""),
  1093  		Type:                                 Ptr(""),
  1094  		Plan:                                 &Plan{},
  1095  		TwoFactorRequirementEnabled:          Ptr(false),
  1096  		IsVerified:                           Ptr(false),
  1097  		HasOrganizationProjects:              Ptr(false),
  1098  		HasRepositoryProjects:                Ptr(false),
  1099  		DefaultRepoPermission:                Ptr(""),
  1100  		DefaultRepoSettings:                  Ptr(""),
  1101  		MembersCanCreateRepos:                Ptr(false),
  1102  		MembersCanCreatePublicRepos:          Ptr(false),
  1103  		MembersCanCreatePrivateRepos:         Ptr(false),
  1104  		MembersCanCreateInternalRepos:        Ptr(false),
  1105  		MembersCanForkPrivateRepos:           Ptr(false),
  1106  		MembersAllowedRepositoryCreationType: Ptr(""),
  1107  		MembersCanCreatePages:                Ptr(false),
  1108  		MembersCanCreatePublicPages:          Ptr(false),
  1109  		MembersCanCreatePrivatePages:         Ptr(false),
  1110  		WebCommitSignoffRequired:             Ptr(false),
  1111  		AdvancedSecurityEnabledForNewRepos:   Ptr(false),
  1112  		DependabotAlertsEnabledForNewRepos:   Ptr(false),
  1113  		DependabotSecurityUpdatesEnabledForNewRepos:    Ptr(false),
  1114  		DependencyGraphEnabledForNewRepos:              Ptr(false),
  1115  		SecretScanningEnabledForNewRepos:               Ptr(false),
  1116  		SecretScanningPushProtectionEnabledForNewRepos: Ptr(false),
  1117  		SecretScanningValidityChecksEnabled:            Ptr(false),
  1118  		URL:                                            Ptr(""),
  1119  		EventsURL:                                      Ptr(""),
  1120  		HooksURL:                                       Ptr(""),
  1121  		IssuesURL:                                      Ptr(""),
  1122  		MembersURL:                                     Ptr(""),
  1123  		PublicMembersURL:                               Ptr(""),
  1124  		ReposURL:                                       Ptr(""),
  1125  	}
  1126  	want := `github.Organization{Login:"", ID:0, NodeID:"", AvatarURL:"", HTMLURL:"", Name:"", Company:"", Blog:"", Location:"", Email:"", TwitterUsername:"", Description:"", PublicRepos:0, PublicGists:0, Followers:0, Following:0, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, TotalPrivateRepos:0, OwnedPrivateRepos:0, PrivateGists:0, DiskUsage:0, Collaborators:0, BillingEmail:"", Type:"", Plan:github.Plan{}, TwoFactorRequirementEnabled:false, IsVerified:false, HasOrganizationProjects:false, HasRepositoryProjects:false, DefaultRepoPermission:"", DefaultRepoSettings:"", MembersCanCreateRepos:false, MembersCanCreatePublicRepos:false, MembersCanCreatePrivateRepos:false, MembersCanCreateInternalRepos:false, MembersCanForkPrivateRepos:false, MembersAllowedRepositoryCreationType:"", MembersCanCreatePages:false, MembersCanCreatePublicPages:false, MembersCanCreatePrivatePages:false, WebCommitSignoffRequired:false, AdvancedSecurityEnabledForNewRepos:false, DependabotAlertsEnabledForNewRepos:false, DependabotSecurityUpdatesEnabledForNewRepos:false, DependencyGraphEnabledForNewRepos:false, SecretScanningEnabledForNewRepos:false, SecretScanningPushProtectionEnabledForNewRepos:false, SecretScanningValidityChecksEnabled:false, URL:"", EventsURL:"", HooksURL:"", IssuesURL:"", MembersURL:"", PublicMembersURL:"", ReposURL:""}`
  1127  	if got := v.String(); got != want {
  1128  		t.Errorf("Organization.String = %v, want %v", got, want)
  1129  	}
  1130  }
  1131  
  1132  func TestPackage_String(t *testing.T) {
  1133  	t.Parallel()
  1134  	v := Package{
  1135  		ID:             Ptr(int64(0)),
  1136  		Name:           Ptr(""),
  1137  		PackageType:    Ptr(""),
  1138  		HTMLURL:        Ptr(""),
  1139  		Visibility:     Ptr(""),
  1140  		Owner:          &User{},
  1141  		Repository:     &Repository{},
  1142  		CreatedAt:      &Timestamp{},
  1143  		UpdatedAt:      &Timestamp{},
  1144  		Namespace:      Ptr(""),
  1145  		Description:    Ptr(""),
  1146  		Ecosystem:      Ptr(""),
  1147  		PackageVersion: &PackageVersion{},
  1148  		Registry:       &PackageRegistry{},
  1149  		URL:            Ptr(""),
  1150  		VersionCount:   Ptr(int64(0)),
  1151  	}
  1152  	want := `github.Package{ID:0, Name:"", PackageType:"", HTMLURL:"", Visibility:"", Owner:github.User{}, Repository:github.Repository{}, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, Namespace:"", Description:"", Ecosystem:"", PackageVersion:github.PackageVersion{}, Registry:github.PackageRegistry{}, URL:"", VersionCount:0}`
  1153  	if got := v.String(); got != want {
  1154  		t.Errorf("Package.String = %v, want %v", got, want)
  1155  	}
  1156  }
  1157  
  1158  func TestPackageContainerMetadata_String(t *testing.T) {
  1159  	t.Parallel()
  1160  	v := PackageContainerMetadata{
  1161  		Tags: []string{""},
  1162  	}
  1163  	want := `github.PackageContainerMetadata{Tags:[""]}`
  1164  	if got := v.String(); got != want {
  1165  		t.Errorf("PackageContainerMetadata.String = %v, want %v", got, want)
  1166  	}
  1167  }
  1168  
  1169  func TestPackageEventContainerMetadata_String(t *testing.T) {
  1170  	t.Parallel()
  1171  	v := PackageEventContainerMetadata{
  1172  		Tag: &PackageEventContainerMetadataTag{},
  1173  	}
  1174  	want := `github.PackageEventContainerMetadata{Tag:github.PackageEventContainerMetadataTag{}}`
  1175  	if got := v.String(); got != want {
  1176  		t.Errorf("PackageEventContainerMetadata.String = %v, want %v", got, want)
  1177  	}
  1178  }
  1179  
  1180  func TestPackageEventContainerMetadataTag_String(t *testing.T) {
  1181  	t.Parallel()
  1182  	v := PackageEventContainerMetadataTag{
  1183  		Name:   Ptr(""),
  1184  		Digest: Ptr(""),
  1185  	}
  1186  	want := `github.PackageEventContainerMetadataTag{Name:"", Digest:""}`
  1187  	if got := v.String(); got != want {
  1188  		t.Errorf("PackageEventContainerMetadataTag.String = %v, want %v", got, want)
  1189  	}
  1190  }
  1191  
  1192  func TestPackageFile_String(t *testing.T) {
  1193  	t.Parallel()
  1194  	v := PackageFile{
  1195  		DownloadURL: Ptr(""),
  1196  		ID:          Ptr(int64(0)),
  1197  		Name:        Ptr(""),
  1198  		SHA256:      Ptr(""),
  1199  		SHA1:        Ptr(""),
  1200  		MD5:         Ptr(""),
  1201  		ContentType: Ptr(""),
  1202  		State:       Ptr(""),
  1203  		Author:      &User{},
  1204  		Size:        Ptr(int64(0)),
  1205  		CreatedAt:   &Timestamp{},
  1206  		UpdatedAt:   &Timestamp{},
  1207  	}
  1208  	want := `github.PackageFile{DownloadURL:"", ID:0, Name:"", SHA256:"", SHA1:"", MD5:"", ContentType:"", State:"", Author:github.User{}, Size:0, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}}`
  1209  	if got := v.String(); got != want {
  1210  		t.Errorf("PackageFile.String = %v, want %v", got, want)
  1211  	}
  1212  }
  1213  
  1214  func TestPackageMetadata_String(t *testing.T) {
  1215  	t.Parallel()
  1216  	v := PackageMetadata{
  1217  		PackageType: Ptr(""),
  1218  		Container:   &PackageContainerMetadata{},
  1219  	}
  1220  	want := `github.PackageMetadata{PackageType:"", Container:github.PackageContainerMetadata{}}`
  1221  	if got := v.String(); got != want {
  1222  		t.Errorf("PackageMetadata.String = %v, want %v", got, want)
  1223  	}
  1224  }
  1225  
  1226  func TestPackageNPMMetadata_String(t *testing.T) {
  1227  	t.Parallel()
  1228  	v := PackageNPMMetadata{
  1229  		Name:                Ptr(""),
  1230  		Version:             Ptr(""),
  1231  		NPMUser:             Ptr(""),
  1232  		Description:         Ptr(""),
  1233  		GitHead:             Ptr(""),
  1234  		Homepage:            Ptr(""),
  1235  		License:             Ptr(""),
  1236  		Main:                Ptr(""),
  1237  		ID:                  Ptr(""),
  1238  		NodeVersion:         Ptr(""),
  1239  		NPMVersion:          Ptr(""),
  1240  		HasShrinkwrap:       Ptr(false),
  1241  		Maintainers:         []any{nil},
  1242  		Contributors:        []any{nil},
  1243  		Keywords:            []string{""},
  1244  		Files:               []string{""},
  1245  		OS:                  []string{""},
  1246  		CPU:                 []string{""},
  1247  		Readme:              Ptr(""),
  1248  		InstallationCommand: Ptr(""),
  1249  		ReleaseID:           Ptr(int64(0)),
  1250  		CommitOID:           Ptr(""),
  1251  		PublishedViaActions: Ptr(false),
  1252  		DeletedByID:         Ptr(int64(0)),
  1253  	}
  1254  	want := `github.PackageNPMMetadata{Name:"", Version:"", NPMUser:"", Description:"", GitHead:"", Homepage:"", License:"", Main:"", ID:"", NodeVersion:"", NPMVersion:"", HasShrinkwrap:false, Maintainers:[<nil>], Contributors:[<nil>], Keywords:[""], Files:[""], OS:[""], CPU:[""], Readme:"", InstallationCommand:"", ReleaseID:0, CommitOID:"", PublishedViaActions:false, DeletedByID:0}`
  1255  	if got := v.String(); got != want {
  1256  		t.Errorf("PackageNPMMetadata.String = %v, want %v", got, want)
  1257  	}
  1258  }
  1259  
  1260  func TestPackageNugetMetadata_String(t *testing.T) {
  1261  	t.Parallel()
  1262  	v := PackageNugetMetadata{
  1263  		Name: Ptr(""),
  1264  	}
  1265  	want := `github.PackageNugetMetadata{Name:""}`
  1266  	if got := v.String(); got != want {
  1267  		t.Errorf("PackageNugetMetadata.String = %v, want %v", got, want)
  1268  	}
  1269  }
  1270  
  1271  func TestPackageRegistry_String(t *testing.T) {
  1272  	t.Parallel()
  1273  	v := PackageRegistry{
  1274  		AboutURL: Ptr(""),
  1275  		Name:     Ptr(""),
  1276  		Type:     Ptr(""),
  1277  		URL:      Ptr(""),
  1278  		Vendor:   Ptr(""),
  1279  	}
  1280  	want := `github.PackageRegistry{AboutURL:"", Name:"", Type:"", URL:"", Vendor:""}`
  1281  	if got := v.String(); got != want {
  1282  		t.Errorf("PackageRegistry.String = %v, want %v", got, want)
  1283  	}
  1284  }
  1285  
  1286  func TestPackageRelease_String(t *testing.T) {
  1287  	t.Parallel()
  1288  	v := PackageRelease{
  1289  		URL:             Ptr(""),
  1290  		HTMLURL:         Ptr(""),
  1291  		ID:              Ptr(int64(0)),
  1292  		TagName:         Ptr(""),
  1293  		TargetCommitish: Ptr(""),
  1294  		Name:            Ptr(""),
  1295  		Draft:           Ptr(false),
  1296  		Author:          &User{},
  1297  		Prerelease:      Ptr(false),
  1298  		CreatedAt:       &Timestamp{},
  1299  		PublishedAt:     &Timestamp{},
  1300  	}
  1301  	want := `github.PackageRelease{URL:"", HTMLURL:"", ID:0, TagName:"", TargetCommitish:"", Name:"", Draft:false, Author:github.User{}, Prerelease:false, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, PublishedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}}`
  1302  	if got := v.String(); got != want {
  1303  		t.Errorf("PackageRelease.String = %v, want %v", got, want)
  1304  	}
  1305  }
  1306  
  1307  func TestPackageVersion_String(t *testing.T) {
  1308  	t.Parallel()
  1309  	v := PackageVersion{
  1310  		ID:                  Ptr(int64(0)),
  1311  		Name:                Ptr(""),
  1312  		URL:                 Ptr(""),
  1313  		PackageHTMLURL:      Ptr(""),
  1314  		License:             Ptr(""),
  1315  		Description:         Ptr(""),
  1316  		CreatedAt:           &Timestamp{},
  1317  		UpdatedAt:           &Timestamp{},
  1318  		Version:             Ptr(""),
  1319  		Summary:             Ptr(""),
  1320  		BodyHTML:            Ptr(""),
  1321  		Release:             &PackageRelease{},
  1322  		Manifest:            Ptr(""),
  1323  		HTMLURL:             Ptr(""),
  1324  		TagName:             Ptr(""),
  1325  		TargetCommitish:     Ptr(""),
  1326  		TargetOID:           Ptr(""),
  1327  		Draft:               Ptr(false),
  1328  		Prerelease:          Ptr(false),
  1329  		ContainerMetadata:   &PackageEventContainerMetadata{},
  1330  		DockerMetadata:      []any{nil},
  1331  		NPMMetadata:         &PackageNPMMetadata{},
  1332  		PackageURL:          Ptr(""),
  1333  		Author:              &User{},
  1334  		SourceURL:           Ptr(""),
  1335  		InstallationCommand: Ptr(""),
  1336  		DeletedAt:           &Timestamp{},
  1337  	}
  1338  	want := `github.PackageVersion{ID:0, Name:"", URL:"", PackageHTMLURL:"", License:"", Description:"", CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, Version:"", Summary:"", BodyHTML:"", Release:github.PackageRelease{}, Manifest:"", HTMLURL:"", TagName:"", TargetCommitish:"", TargetOID:"", Draft:false, Prerelease:false, ContainerMetadata:github.PackageEventContainerMetadata{}, DockerMetadata:[<nil>], NPMMetadata:github.PackageNPMMetadata{}, PackageURL:"", Author:github.User{}, SourceURL:"", InstallationCommand:"", DeletedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}}`
  1339  	if got := v.String(); got != want {
  1340  		t.Errorf("PackageVersion.String = %v, want %v", got, want)
  1341  	}
  1342  }
  1343  
  1344  func TestPackageVersionBody_String(t *testing.T) {
  1345  	t.Parallel()
  1346  	v := PackageVersionBody{
  1347  		Repo: &Repository{},
  1348  		Info: &PackageVersionBodyInfo{},
  1349  	}
  1350  	want := `github.PackageVersionBody{Repo:github.Repository{}, Info:github.PackageVersionBodyInfo{}}`
  1351  	if got := v.String(); got != want {
  1352  		t.Errorf("PackageVersionBody.String = %v, want %v", got, want)
  1353  	}
  1354  }
  1355  
  1356  func TestPackageVersionBodyInfo_String(t *testing.T) {
  1357  	t.Parallel()
  1358  	v := PackageVersionBodyInfo{
  1359  		Type:       Ptr(""),
  1360  		OID:        Ptr(""),
  1361  		Mode:       Ptr(int64(0)),
  1362  		Name:       Ptr(""),
  1363  		Path:       Ptr(""),
  1364  		Size:       Ptr(int64(0)),
  1365  		Collection: Ptr(false),
  1366  	}
  1367  	want := `github.PackageVersionBodyInfo{Type:"", OID:"", Mode:0, Name:"", Path:"", Size:0, Collection:false}`
  1368  	if got := v.String(); got != want {
  1369  		t.Errorf("PackageVersionBodyInfo.String = %v, want %v", got, want)
  1370  	}
  1371  }
  1372  
  1373  func TestPageStats_String(t *testing.T) {
  1374  	t.Parallel()
  1375  	v := PageStats{
  1376  		TotalPages: Ptr(0),
  1377  	}
  1378  	want := `github.PageStats{TotalPages:0}`
  1379  	if got := v.String(); got != want {
  1380  		t.Errorf("PageStats.String = %v, want %v", got, want)
  1381  	}
  1382  }
  1383  
  1384  func TestPlan_String(t *testing.T) {
  1385  	t.Parallel()
  1386  	v := Plan{
  1387  		Name:          Ptr(""),
  1388  		Space:         Ptr(0),
  1389  		Collaborators: Ptr(0),
  1390  		PrivateRepos:  Ptr(int64(0)),
  1391  		FilledSeats:   Ptr(0),
  1392  		Seats:         Ptr(0),
  1393  	}
  1394  	want := `github.Plan{Name:"", Space:0, Collaborators:0, PrivateRepos:0, FilledSeats:0, Seats:0}`
  1395  	if got := v.String(); got != want {
  1396  		t.Errorf("Plan.String = %v, want %v", got, want)
  1397  	}
  1398  }
  1399  
  1400  func TestPreReceiveHook_String(t *testing.T) {
  1401  	t.Parallel()
  1402  	v := PreReceiveHook{
  1403  		ID:          Ptr(int64(0)),
  1404  		Name:        Ptr(""),
  1405  		Enforcement: Ptr(""),
  1406  		ConfigURL:   Ptr(""),
  1407  	}
  1408  	want := `github.PreReceiveHook{ID:0, Name:"", Enforcement:"", ConfigURL:""}`
  1409  	if got := v.String(); got != want {
  1410  		t.Errorf("PreReceiveHook.String = %v, want %v", got, want)
  1411  	}
  1412  }
  1413  
  1414  func TestPullRequest_String(t *testing.T) {
  1415  	t.Parallel()
  1416  	v := PullRequest{
  1417  		ID:                  Ptr(int64(0)),
  1418  		Number:              Ptr(0),
  1419  		State:               Ptr(""),
  1420  		Locked:              Ptr(false),
  1421  		Title:               Ptr(""),
  1422  		Body:                Ptr(""),
  1423  		CreatedAt:           &Timestamp{},
  1424  		UpdatedAt:           &Timestamp{},
  1425  		ClosedAt:            &Timestamp{},
  1426  		MergedAt:            &Timestamp{},
  1427  		User:                &User{},
  1428  		Draft:               Ptr(false),
  1429  		URL:                 Ptr(""),
  1430  		HTMLURL:             Ptr(""),
  1431  		IssueURL:            Ptr(""),
  1432  		StatusesURL:         Ptr(""),
  1433  		DiffURL:             Ptr(""),
  1434  		PatchURL:            Ptr(""),
  1435  		CommitsURL:          Ptr(""),
  1436  		CommentsURL:         Ptr(""),
  1437  		ReviewCommentsURL:   Ptr(""),
  1438  		ReviewCommentURL:    Ptr(""),
  1439  		Assignee:            &User{},
  1440  		Milestone:           &Milestone{},
  1441  		AuthorAssociation:   Ptr(""),
  1442  		NodeID:              Ptr(""),
  1443  		AutoMerge:           &PullRequestAutoMerge{},
  1444  		Merged:              Ptr(false),
  1445  		Mergeable:           Ptr(false),
  1446  		MergeableState:      Ptr(""),
  1447  		Rebaseable:          Ptr(false),
  1448  		MergedBy:            &User{},
  1449  		MergeCommitSHA:      Ptr(""),
  1450  		Comments:            Ptr(0),
  1451  		Commits:             Ptr(0),
  1452  		Additions:           Ptr(0),
  1453  		Deletions:           Ptr(0),
  1454  		ChangedFiles:        Ptr(0),
  1455  		MaintainerCanModify: Ptr(false),
  1456  		ReviewComments:      Ptr(0),
  1457  		Links:               &PRLinks{},
  1458  		Head:                &PullRequestBranch{},
  1459  		Base:                &PullRequestBranch{},
  1460  		ActiveLockReason:    Ptr(""),
  1461  	}
  1462  	want := `github.PullRequest{ID:0, Number:0, State:"", Locked:false, Title:"", Body:"", CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, ClosedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, MergedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, User:github.User{}, Draft:false, URL:"", HTMLURL:"", IssueURL:"", StatusesURL:"", DiffURL:"", PatchURL:"", CommitsURL:"", CommentsURL:"", ReviewCommentsURL:"", ReviewCommentURL:"", Assignee:github.User{}, Milestone:github.Milestone{}, AuthorAssociation:"", NodeID:"", AutoMerge:github.PullRequestAutoMerge{}, Merged:false, Mergeable:false, MergeableState:"", Rebaseable:false, MergedBy:github.User{}, MergeCommitSHA:"", Comments:0, Commits:0, Additions:0, Deletions:0, ChangedFiles:0, MaintainerCanModify:false, ReviewComments:0, Links:github.PRLinks{}, Head:github.PullRequestBranch{}, Base:github.PullRequestBranch{}, ActiveLockReason:""}`
  1463  	if got := v.String(); got != want {
  1464  		t.Errorf("PullRequest.String = %v, want %v", got, want)
  1465  	}
  1466  }
  1467  
  1468  func TestPullRequestComment_String(t *testing.T) {
  1469  	t.Parallel()
  1470  	v := PullRequestComment{
  1471  		ID:                  Ptr(int64(0)),
  1472  		NodeID:              Ptr(""),
  1473  		InReplyTo:           Ptr(int64(0)),
  1474  		Body:                Ptr(""),
  1475  		Path:                Ptr(""),
  1476  		DiffHunk:            Ptr(""),
  1477  		PullRequestReviewID: Ptr(int64(0)),
  1478  		Position:            Ptr(0),
  1479  		OriginalPosition:    Ptr(0),
  1480  		StartLine:           Ptr(0),
  1481  		Line:                Ptr(0),
  1482  		OriginalLine:        Ptr(0),
  1483  		OriginalStartLine:   Ptr(0),
  1484  		Side:                Ptr(""),
  1485  		StartSide:           Ptr(""),
  1486  		CommitID:            Ptr(""),
  1487  		OriginalCommitID:    Ptr(""),
  1488  		User:                &User{},
  1489  		Reactions:           &Reactions{},
  1490  		CreatedAt:           &Timestamp{},
  1491  		UpdatedAt:           &Timestamp{},
  1492  		AuthorAssociation:   Ptr(""),
  1493  		URL:                 Ptr(""),
  1494  		HTMLURL:             Ptr(""),
  1495  		PullRequestURL:      Ptr(""),
  1496  		SubjectType:         Ptr(""),
  1497  	}
  1498  	want := `github.PullRequestComment{ID:0, NodeID:"", InReplyTo:0, Body:"", Path:"", DiffHunk:"", PullRequestReviewID:0, Position:0, OriginalPosition:0, StartLine:0, Line:0, OriginalLine:0, OriginalStartLine:0, Side:"", StartSide:"", CommitID:"", OriginalCommitID:"", User:github.User{}, Reactions:github.Reactions{}, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, AuthorAssociation:"", URL:"", HTMLURL:"", PullRequestURL:"", SubjectType:""}`
  1499  	if got := v.String(); got != want {
  1500  		t.Errorf("PullRequestComment.String = %v, want %v", got, want)
  1501  	}
  1502  }
  1503  
  1504  func TestPullRequestReview_String(t *testing.T) {
  1505  	t.Parallel()
  1506  	v := PullRequestReview{
  1507  		ID:                Ptr(int64(0)),
  1508  		NodeID:            Ptr(""),
  1509  		User:              &User{},
  1510  		Body:              Ptr(""),
  1511  		SubmittedAt:       &Timestamp{},
  1512  		CommitID:          Ptr(""),
  1513  		HTMLURL:           Ptr(""),
  1514  		PullRequestURL:    Ptr(""),
  1515  		State:             Ptr(""),
  1516  		AuthorAssociation: Ptr(""),
  1517  	}
  1518  	want := `github.PullRequestReview{ID:0, NodeID:"", User:github.User{}, Body:"", SubmittedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, CommitID:"", HTMLURL:"", PullRequestURL:"", State:"", AuthorAssociation:""}`
  1519  	if got := v.String(); got != want {
  1520  		t.Errorf("PullRequestReview.String = %v, want %v", got, want)
  1521  	}
  1522  }
  1523  
  1524  func TestPullRequestReviewDismissalRequest_String(t *testing.T) {
  1525  	t.Parallel()
  1526  	v := PullRequestReviewDismissalRequest{
  1527  		Message: Ptr(""),
  1528  	}
  1529  	want := `github.PullRequestReviewDismissalRequest{Message:""}`
  1530  	if got := v.String(); got != want {
  1531  		t.Errorf("PullRequestReviewDismissalRequest.String = %v, want %v", got, want)
  1532  	}
  1533  }
  1534  
  1535  func TestPullRequestReviewRequest_String(t *testing.T) {
  1536  	t.Parallel()
  1537  	v := PullRequestReviewRequest{
  1538  		NodeID:   Ptr(""),
  1539  		CommitID: Ptr(""),
  1540  		Body:     Ptr(""),
  1541  		Event:    Ptr(""),
  1542  	}
  1543  	want := `github.PullRequestReviewRequest{NodeID:"", CommitID:"", Body:"", Event:""}`
  1544  	if got := v.String(); got != want {
  1545  		t.Errorf("PullRequestReviewRequest.String = %v, want %v", got, want)
  1546  	}
  1547  }
  1548  
  1549  func TestPullRequestThread_String(t *testing.T) {
  1550  	t.Parallel()
  1551  	v := PullRequestThread{
  1552  		ID:     Ptr(int64(0)),
  1553  		NodeID: Ptr(""),
  1554  	}
  1555  	want := `github.PullRequestThread{ID:0, NodeID:""}`
  1556  	if got := v.String(); got != want {
  1557  		t.Errorf("PullRequestThread.String = %v, want %v", got, want)
  1558  	}
  1559  }
  1560  
  1561  func TestPullStats_String(t *testing.T) {
  1562  	t.Parallel()
  1563  	v := PullStats{
  1564  		TotalPulls:       Ptr(0),
  1565  		MergedPulls:      Ptr(0),
  1566  		MergeablePulls:   Ptr(0),
  1567  		UnmergeablePulls: Ptr(0),
  1568  	}
  1569  	want := `github.PullStats{TotalPulls:0, MergedPulls:0, MergeablePulls:0, UnmergeablePulls:0}`
  1570  	if got := v.String(); got != want {
  1571  		t.Errorf("PullStats.String = %v, want %v", got, want)
  1572  	}
  1573  }
  1574  
  1575  func TestPushEvent_String(t *testing.T) {
  1576  	t.Parallel()
  1577  	v := PushEvent{
  1578  		PushID:       Ptr(int64(0)),
  1579  		Head:         Ptr(""),
  1580  		Ref:          Ptr(""),
  1581  		Size:         Ptr(0),
  1582  		Before:       Ptr(""),
  1583  		DistinctSize: Ptr(0),
  1584  		Action:       Ptr(""),
  1585  		After:        Ptr(""),
  1586  		Created:      Ptr(false),
  1587  		Deleted:      Ptr(false),
  1588  		Forced:       Ptr(false),
  1589  		BaseRef:      Ptr(""),
  1590  		Compare:      Ptr(""),
  1591  		Repo:         &PushEventRepository{},
  1592  		HeadCommit:   &HeadCommit{},
  1593  		Pusher:       &CommitAuthor{},
  1594  		Sender:       &User{},
  1595  		Installation: &Installation{},
  1596  		Organization: &Organization{},
  1597  	}
  1598  	want := `github.PushEvent{PushID:0, Head:"", Ref:"", Size:0, Before:"", DistinctSize:0, Action:"", After:"", Created:false, Deleted:false, Forced:false, BaseRef:"", Compare:"", Repo:github.PushEventRepository{}, HeadCommit:github.HeadCommit{}, Pusher:github.CommitAuthor{}, Sender:github.User{}, Installation:github.Installation{}, Organization:github.Organization{}}`
  1599  	if got := v.String(); got != want {
  1600  		t.Errorf("PushEvent.String = %v, want %v", got, want)
  1601  	}
  1602  }
  1603  
  1604  func TestRate_String(t *testing.T) {
  1605  	t.Parallel()
  1606  	v := Rate{
  1607  		Limit:     0,
  1608  		Remaining: 0,
  1609  		Used:      0,
  1610  		Reset:     Timestamp{},
  1611  		Resource:  "",
  1612  	}
  1613  	want := `github.Rate{Limit:0, Remaining:0, Used:0, Reset:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, Resource:""}`
  1614  	if got := v.String(); got != want {
  1615  		t.Errorf("Rate.String = %v, want %v", got, want)
  1616  	}
  1617  }
  1618  
  1619  func TestReaction_String(t *testing.T) {
  1620  	t.Parallel()
  1621  	v := Reaction{
  1622  		ID:        Ptr(int64(0)),
  1623  		User:      &User{},
  1624  		NodeID:    Ptr(""),
  1625  		Content:   Ptr(""),
  1626  		CreatedAt: &Timestamp{},
  1627  	}
  1628  	want := `github.Reaction{ID:0, User:github.User{}, NodeID:"", Content:"", CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}}`
  1629  	if got := v.String(); got != want {
  1630  		t.Errorf("Reaction.String = %v, want %v", got, want)
  1631  	}
  1632  }
  1633  
  1634  func TestReference_String(t *testing.T) {
  1635  	t.Parallel()
  1636  	v := Reference{
  1637  		Ref:    Ptr(""),
  1638  		URL:    Ptr(""),
  1639  		Object: &GitObject{},
  1640  		NodeID: Ptr(""),
  1641  	}
  1642  	want := `github.Reference{Ref:"", URL:"", Object:github.GitObject{}, NodeID:""}`
  1643  	if got := v.String(); got != want {
  1644  		t.Errorf("Reference.String = %v, want %v", got, want)
  1645  	}
  1646  }
  1647  
  1648  func TestReleaseAsset_String(t *testing.T) {
  1649  	t.Parallel()
  1650  	v := ReleaseAsset{
  1651  		ID:                 Ptr(int64(0)),
  1652  		URL:                Ptr(""),
  1653  		Name:               Ptr(""),
  1654  		Label:              Ptr(""),
  1655  		State:              Ptr(""),
  1656  		ContentType:        Ptr(""),
  1657  		Size:               Ptr(0),
  1658  		DownloadCount:      Ptr(0),
  1659  		CreatedAt:          &Timestamp{},
  1660  		UpdatedAt:          &Timestamp{},
  1661  		BrowserDownloadURL: Ptr(""),
  1662  		Uploader:           &User{},
  1663  		NodeID:             Ptr(""),
  1664  		Digest:             Ptr(""),
  1665  	}
  1666  	want := `github.ReleaseAsset{ID:0, URL:"", Name:"", Label:"", State:"", ContentType:"", Size:0, DownloadCount:0, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, BrowserDownloadURL:"", Uploader:github.User{}, NodeID:"", Digest:""}`
  1667  	if got := v.String(); got != want {
  1668  		t.Errorf("ReleaseAsset.String = %v, want %v", got, want)
  1669  	}
  1670  }
  1671  
  1672  func TestRename_String(t *testing.T) {
  1673  	t.Parallel()
  1674  	v := Rename{
  1675  		From: Ptr(""),
  1676  		To:   Ptr(""),
  1677  	}
  1678  	want := `github.Rename{From:"", To:""}`
  1679  	if got := v.String(); got != want {
  1680  		t.Errorf("Rename.String = %v, want %v", got, want)
  1681  	}
  1682  }
  1683  
  1684  func TestRepoStats_String(t *testing.T) {
  1685  	t.Parallel()
  1686  	v := RepoStats{
  1687  		TotalRepos:  Ptr(0),
  1688  		RootRepos:   Ptr(0),
  1689  		ForkRepos:   Ptr(0),
  1690  		OrgRepos:    Ptr(0),
  1691  		TotalPushes: Ptr(0),
  1692  		TotalWikis:  Ptr(0),
  1693  	}
  1694  	want := `github.RepoStats{TotalRepos:0, RootRepos:0, ForkRepos:0, OrgRepos:0, TotalPushes:0, TotalWikis:0}`
  1695  	if got := v.String(); got != want {
  1696  		t.Errorf("RepoStats.String = %v, want %v", got, want)
  1697  	}
  1698  }
  1699  
  1700  func TestRepoStatus_String(t *testing.T) {
  1701  	t.Parallel()
  1702  	v := RepoStatus{
  1703  		ID:          Ptr(int64(0)),
  1704  		NodeID:      Ptr(""),
  1705  		URL:         Ptr(""),
  1706  		State:       Ptr(""),
  1707  		TargetURL:   Ptr(""),
  1708  		Description: Ptr(""),
  1709  		Context:     Ptr(""),
  1710  		AvatarURL:   Ptr(""),
  1711  		Creator:     &User{},
  1712  		CreatedAt:   &Timestamp{},
  1713  		UpdatedAt:   &Timestamp{},
  1714  	}
  1715  	want := `github.RepoStatus{ID:0, NodeID:"", URL:"", State:"", TargetURL:"", Description:"", Context:"", AvatarURL:"", Creator:github.User{}, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}}`
  1716  	if got := v.String(); got != want {
  1717  		t.Errorf("RepoStatus.String = %v, want %v", got, want)
  1718  	}
  1719  }
  1720  
  1721  func TestRepository_String(t *testing.T) {
  1722  	t.Parallel()
  1723  	v := Repository{
  1724  		ID:                        Ptr(int64(0)),
  1725  		NodeID:                    Ptr(""),
  1726  		Owner:                     &User{},
  1727  		Name:                      Ptr(""),
  1728  		FullName:                  Ptr(""),
  1729  		Description:               Ptr(""),
  1730  		Homepage:                  Ptr(""),
  1731  		CodeOfConduct:             &CodeOfConduct{},
  1732  		DefaultBranch:             Ptr(""),
  1733  		MasterBranch:              Ptr(""),
  1734  		CreatedAt:                 &Timestamp{},
  1735  		PushedAt:                  &Timestamp{},
  1736  		UpdatedAt:                 &Timestamp{},
  1737  		HTMLURL:                   Ptr(""),
  1738  		CloneURL:                  Ptr(""),
  1739  		GitURL:                    Ptr(""),
  1740  		MirrorURL:                 Ptr(""),
  1741  		SSHURL:                    Ptr(""),
  1742  		SVNURL:                    Ptr(""),
  1743  		Language:                  Ptr(""),
  1744  		Fork:                      Ptr(false),
  1745  		ForksCount:                Ptr(0),
  1746  		NetworkCount:              Ptr(0),
  1747  		OpenIssuesCount:           Ptr(0),
  1748  		OpenIssues:                Ptr(0),
  1749  		StargazersCount:           Ptr(0),
  1750  		SubscribersCount:          Ptr(0),
  1751  		WatchersCount:             Ptr(0),
  1752  		Watchers:                  Ptr(0),
  1753  		Size:                      Ptr(0),
  1754  		AutoInit:                  Ptr(false),
  1755  		Parent:                    &Repository{},
  1756  		Source:                    &Repository{},
  1757  		TemplateRepository:        &Repository{},
  1758  		Organization:              &Organization{},
  1759  		AllowRebaseMerge:          Ptr(false),
  1760  		AllowUpdateBranch:         Ptr(false),
  1761  		AllowSquashMerge:          Ptr(false),
  1762  		AllowMergeCommit:          Ptr(false),
  1763  		AllowAutoMerge:            Ptr(false),
  1764  		AllowForking:              Ptr(false),
  1765  		WebCommitSignoffRequired:  Ptr(false),
  1766  		DeleteBranchOnMerge:       Ptr(false),
  1767  		UseSquashPRTitleAsDefault: Ptr(false),
  1768  		SquashMergeCommitTitle:    Ptr(""),
  1769  		SquashMergeCommitMessage:  Ptr(""),
  1770  		MergeCommitTitle:          Ptr(""),
  1771  		MergeCommitMessage:        Ptr(""),
  1772  		Topics:                    []string{""},
  1773  		Archived:                  Ptr(false),
  1774  		Disabled:                  Ptr(false),
  1775  		License:                   &License{},
  1776  		Private:                   Ptr(false),
  1777  		HasIssues:                 Ptr(false),
  1778  		HasWiki:                   Ptr(false),
  1779  		HasPages:                  Ptr(false),
  1780  		HasProjects:               Ptr(false),
  1781  		HasDownloads:              Ptr(false),
  1782  		HasDiscussions:            Ptr(false),
  1783  		IsTemplate:                Ptr(false),
  1784  		LicenseTemplate:           Ptr(""),
  1785  		GitignoreTemplate:         Ptr(""),
  1786  		SecurityAndAnalysis:       &SecurityAndAnalysis{},
  1787  		TeamID:                    Ptr(int64(0)),
  1788  		URL:                       Ptr(""),
  1789  		ArchiveURL:                Ptr(""),
  1790  		AssigneesURL:              Ptr(""),
  1791  		BlobsURL:                  Ptr(""),
  1792  		BranchesURL:               Ptr(""),
  1793  		CollaboratorsURL:          Ptr(""),
  1794  		CommentsURL:               Ptr(""),
  1795  		CommitsURL:                Ptr(""),
  1796  		CompareURL:                Ptr(""),
  1797  		ContentsURL:               Ptr(""),
  1798  		ContributorsURL:           Ptr(""),
  1799  		DeploymentsURL:            Ptr(""),
  1800  		DownloadsURL:              Ptr(""),
  1801  		EventsURL:                 Ptr(""),
  1802  		ForksURL:                  Ptr(""),
  1803  		GitCommitsURL:             Ptr(""),
  1804  		GitRefsURL:                Ptr(""),
  1805  		GitTagsURL:                Ptr(""),
  1806  		HooksURL:                  Ptr(""),
  1807  		IssueCommentURL:           Ptr(""),
  1808  		IssueEventsURL:            Ptr(""),
  1809  		IssuesURL:                 Ptr(""),
  1810  		KeysURL:                   Ptr(""),
  1811  		LabelsURL:                 Ptr(""),
  1812  		LanguagesURL:              Ptr(""),
  1813  		MergesURL:                 Ptr(""),
  1814  		MilestonesURL:             Ptr(""),
  1815  		NotificationsURL:          Ptr(""),
  1816  		PullsURL:                  Ptr(""),
  1817  		ReleasesURL:               Ptr(""),
  1818  		StargazersURL:             Ptr(""),
  1819  		StatusesURL:               Ptr(""),
  1820  		SubscribersURL:            Ptr(""),
  1821  		SubscriptionURL:           Ptr(""),
  1822  		TagsURL:                   Ptr(""),
  1823  		TreesURL:                  Ptr(""),
  1824  		TeamsURL:                  Ptr(""),
  1825  		Visibility:                Ptr(""),
  1826  		RoleName:                  Ptr(""),
  1827  	}
  1828  	want := `github.Repository{ID:0, NodeID:"", Owner:github.User{}, Name:"", FullName:"", Description:"", Homepage:"", CodeOfConduct:github.CodeOfConduct{}, DefaultBranch:"", MasterBranch:"", CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, PushedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, HTMLURL:"", CloneURL:"", GitURL:"", MirrorURL:"", SSHURL:"", SVNURL:"", Language:"", Fork:false, ForksCount:0, NetworkCount:0, OpenIssuesCount:0, OpenIssues:0, StargazersCount:0, SubscribersCount:0, WatchersCount:0, Watchers:0, Size:0, AutoInit:false, Parent:github.Repository{}, Source:github.Repository{}, TemplateRepository:github.Repository{}, Organization:github.Organization{}, AllowRebaseMerge:false, AllowUpdateBranch:false, AllowSquashMerge:false, AllowMergeCommit:false, AllowAutoMerge:false, AllowForking:false, WebCommitSignoffRequired:false, DeleteBranchOnMerge:false, UseSquashPRTitleAsDefault:false, SquashMergeCommitTitle:"", SquashMergeCommitMessage:"", MergeCommitTitle:"", MergeCommitMessage:"", Topics:[""], Archived:false, Disabled:false, License:github.License{}, Private:false, HasIssues:false, HasWiki:false, HasPages:false, HasProjects:false, HasDownloads:false, HasDiscussions:false, IsTemplate:false, LicenseTemplate:"", GitignoreTemplate:"", SecurityAndAnalysis:github.SecurityAndAnalysis{}, TeamID:0, URL:"", ArchiveURL:"", AssigneesURL:"", BlobsURL:"", BranchesURL:"", CollaboratorsURL:"", CommentsURL:"", CommitsURL:"", CompareURL:"", ContentsURL:"", ContributorsURL:"", DeploymentsURL:"", DownloadsURL:"", EventsURL:"", ForksURL:"", GitCommitsURL:"", GitRefsURL:"", GitTagsURL:"", HooksURL:"", IssueCommentURL:"", IssueEventsURL:"", IssuesURL:"", KeysURL:"", LabelsURL:"", LanguagesURL:"", MergesURL:"", MilestonesURL:"", NotificationsURL:"", PullsURL:"", ReleasesURL:"", StargazersURL:"", StatusesURL:"", SubscribersURL:"", SubscriptionURL:"", TagsURL:"", TreesURL:"", TeamsURL:"", Visibility:"", RoleName:""}`
  1829  	if got := v.String(); got != want {
  1830  		t.Errorf("Repository.String = %v, want %v", got, want)
  1831  	}
  1832  }
  1833  
  1834  func TestRepositoryComment_String(t *testing.T) {
  1835  	t.Parallel()
  1836  	v := RepositoryComment{
  1837  		HTMLURL:   Ptr(""),
  1838  		URL:       Ptr(""),
  1839  		ID:        Ptr(int64(0)),
  1840  		NodeID:    Ptr(""),
  1841  		CommitID:  Ptr(""),
  1842  		User:      &User{},
  1843  		Reactions: &Reactions{},
  1844  		CreatedAt: &Timestamp{},
  1845  		UpdatedAt: &Timestamp{},
  1846  		Body:      Ptr(""),
  1847  		Path:      Ptr(""),
  1848  		Position:  Ptr(0),
  1849  	}
  1850  	want := `github.RepositoryComment{HTMLURL:"", URL:"", ID:0, NodeID:"", CommitID:"", User:github.User{}, Reactions:github.Reactions{}, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, Body:"", Path:"", Position:0}`
  1851  	if got := v.String(); got != want {
  1852  		t.Errorf("RepositoryComment.String = %v, want %v", got, want)
  1853  	}
  1854  }
  1855  
  1856  func TestRepositoryCommit_String(t *testing.T) {
  1857  	t.Parallel()
  1858  	v := RepositoryCommit{
  1859  		NodeID:      Ptr(""),
  1860  		SHA:         Ptr(""),
  1861  		Commit:      &Commit{},
  1862  		Author:      &User{},
  1863  		Committer:   &User{},
  1864  		HTMLURL:     Ptr(""),
  1865  		URL:         Ptr(""),
  1866  		CommentsURL: Ptr(""),
  1867  		Stats:       &CommitStats{},
  1868  	}
  1869  	want := `github.RepositoryCommit{NodeID:"", SHA:"", Commit:github.Commit{}, Author:github.User{}, Committer:github.User{}, HTMLURL:"", URL:"", CommentsURL:"", Stats:github.CommitStats{}}`
  1870  	if got := v.String(); got != want {
  1871  		t.Errorf("RepositoryCommit.String = %v, want %v", got, want)
  1872  	}
  1873  }
  1874  
  1875  func TestRepositoryContent_String(t *testing.T) {
  1876  	t.Parallel()
  1877  	v := RepositoryContent{
  1878  		Type:            Ptr(""),
  1879  		Target:          Ptr(""),
  1880  		Encoding:        Ptr(""),
  1881  		Size:            Ptr(0),
  1882  		Name:            Ptr(""),
  1883  		Path:            Ptr(""),
  1884  		Content:         Ptr(""),
  1885  		SHA:             Ptr(""),
  1886  		URL:             Ptr(""),
  1887  		GitURL:          Ptr(""),
  1888  		HTMLURL:         Ptr(""),
  1889  		DownloadURL:     Ptr(""),
  1890  		SubmoduleGitURL: Ptr(""),
  1891  	}
  1892  	want := `github.RepositoryContent{Type:"", Target:"", Encoding:"", Size:0, Name:"", Path:"", Content:"", SHA:"", URL:"", GitURL:"", HTMLURL:"", DownloadURL:"", SubmoduleGitURL:""}`
  1893  	if got := v.String(); got != want {
  1894  		t.Errorf("RepositoryContent.String = %v, want %v", got, want)
  1895  	}
  1896  }
  1897  
  1898  func TestRepositoryLicense_String(t *testing.T) {
  1899  	t.Parallel()
  1900  	v := RepositoryLicense{
  1901  		Name:        Ptr(""),
  1902  		Path:        Ptr(""),
  1903  		SHA:         Ptr(""),
  1904  		Size:        Ptr(0),
  1905  		URL:         Ptr(""),
  1906  		HTMLURL:     Ptr(""),
  1907  		GitURL:      Ptr(""),
  1908  		DownloadURL: Ptr(""),
  1909  		Type:        Ptr(""),
  1910  		Content:     Ptr(""),
  1911  		Encoding:    Ptr(""),
  1912  		License:     &License{},
  1913  	}
  1914  	want := `github.RepositoryLicense{Name:"", Path:"", SHA:"", Size:0, URL:"", HTMLURL:"", GitURL:"", DownloadURL:"", Type:"", Content:"", Encoding:"", License:github.License{}}`
  1915  	if got := v.String(); got != want {
  1916  		t.Errorf("RepositoryLicense.String = %v, want %v", got, want)
  1917  	}
  1918  }
  1919  
  1920  func TestRepositoryParticipation_String(t *testing.T) {
  1921  	t.Parallel()
  1922  	v := RepositoryParticipation{
  1923  		All:   []int{0},
  1924  		Owner: []int{0},
  1925  	}
  1926  	want := `github.RepositoryParticipation{All:[0], Owner:[0]}`
  1927  	if got := v.String(); got != want {
  1928  		t.Errorf("RepositoryParticipation.String = %v, want %v", got, want)
  1929  	}
  1930  }
  1931  
  1932  func TestRepositoryRelease_String(t *testing.T) {
  1933  	t.Parallel()
  1934  	v := RepositoryRelease{
  1935  		TagName:                Ptr(""),
  1936  		TargetCommitish:        Ptr(""),
  1937  		Name:                   Ptr(""),
  1938  		Body:                   Ptr(""),
  1939  		Draft:                  Ptr(false),
  1940  		Prerelease:             Ptr(false),
  1941  		MakeLatest:             Ptr(""),
  1942  		DiscussionCategoryName: Ptr(""),
  1943  		GenerateReleaseNotes:   Ptr(false),
  1944  		ID:                     Ptr(int64(0)),
  1945  		CreatedAt:              &Timestamp{},
  1946  		PublishedAt:            &Timestamp{},
  1947  		URL:                    Ptr(""),
  1948  		HTMLURL:                Ptr(""),
  1949  		AssetsURL:              Ptr(""),
  1950  		UploadURL:              Ptr(""),
  1951  		ZipballURL:             Ptr(""),
  1952  		TarballURL:             Ptr(""),
  1953  		Author:                 &User{},
  1954  		NodeID:                 Ptr(""),
  1955  	}
  1956  	want := `github.RepositoryRelease{TagName:"", TargetCommitish:"", Name:"", Body:"", Draft:false, Prerelease:false, MakeLatest:"", DiscussionCategoryName:"", GenerateReleaseNotes:false, ID:0, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, PublishedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, URL:"", HTMLURL:"", AssetsURL:"", UploadURL:"", ZipballURL:"", TarballURL:"", Author:github.User{}, NodeID:""}`
  1957  	if got := v.String(); got != want {
  1958  		t.Errorf("RepositoryRelease.String = %v, want %v", got, want)
  1959  	}
  1960  }
  1961  
  1962  func TestSBOM_String(t *testing.T) {
  1963  	t.Parallel()
  1964  	v := SBOM{
  1965  		SBOM: &SBOMInfo{},
  1966  	}
  1967  	want := `github.SBOM{SBOM:github.SBOMInfo{}}`
  1968  	if got := v.String(); got != want {
  1969  		t.Errorf("SBOM.String = %v, want %v", got, want)
  1970  	}
  1971  }
  1972  
  1973  func TestSSHSigningKey_String(t *testing.T) {
  1974  	t.Parallel()
  1975  	v := SSHSigningKey{
  1976  		ID:        Ptr(int64(0)),
  1977  		Key:       Ptr(""),
  1978  		Title:     Ptr(""),
  1979  		CreatedAt: &Timestamp{},
  1980  	}
  1981  	want := `github.SSHSigningKey{ID:0, Key:"", Title:"", CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}}`
  1982  	if got := v.String(); got != want {
  1983  		t.Errorf("SSHSigningKey.String = %v, want %v", got, want)
  1984  	}
  1985  }
  1986  
  1987  func TestSecretScanning_String(t *testing.T) {
  1988  	t.Parallel()
  1989  	v := SecretScanning{
  1990  		Status: Ptr(""),
  1991  	}
  1992  	want := `github.SecretScanning{Status:""}`
  1993  	if got := v.String(); got != want {
  1994  		t.Errorf("SecretScanning.String = %v, want %v", got, want)
  1995  	}
  1996  }
  1997  
  1998  func TestSecretScanningPushProtection_String(t *testing.T) {
  1999  	t.Parallel()
  2000  	v := SecretScanningPushProtection{
  2001  		Status: Ptr(""),
  2002  	}
  2003  	want := `github.SecretScanningPushProtection{Status:""}`
  2004  	if got := v.String(); got != want {
  2005  		t.Errorf("SecretScanningPushProtection.String = %v, want %v", got, want)
  2006  	}
  2007  }
  2008  
  2009  func TestSecurityAndAnalysis_String(t *testing.T) {
  2010  	t.Parallel()
  2011  	v := SecurityAndAnalysis{
  2012  		AdvancedSecurity:             &AdvancedSecurity{},
  2013  		SecretScanning:               &SecretScanning{},
  2014  		SecretScanningPushProtection: &SecretScanningPushProtection{},
  2015  		DependabotSecurityUpdates:    &DependabotSecurityUpdates{},
  2016  		SecretScanningValidityChecks: &SecretScanningValidityChecks{},
  2017  	}
  2018  	want := `github.SecurityAndAnalysis{AdvancedSecurity:github.AdvancedSecurity{}, SecretScanning:github.SecretScanning{}, SecretScanningPushProtection:github.SecretScanningPushProtection{}, DependabotSecurityUpdates:github.DependabotSecurityUpdates{}, SecretScanningValidityChecks:github.SecretScanningValidityChecks{}}`
  2019  	if got := v.String(); got != want {
  2020  		t.Errorf("SecurityAndAnalysis.String = %v, want %v", got, want)
  2021  	}
  2022  }
  2023  
  2024  func TestSourceImportAuthor_String(t *testing.T) {
  2025  	t.Parallel()
  2026  	v := SourceImportAuthor{
  2027  		ID:         Ptr(int64(0)),
  2028  		RemoteID:   Ptr(""),
  2029  		RemoteName: Ptr(""),
  2030  		Email:      Ptr(""),
  2031  		Name:       Ptr(""),
  2032  		URL:        Ptr(""),
  2033  		ImportURL:  Ptr(""),
  2034  	}
  2035  	want := `github.SourceImportAuthor{ID:0, RemoteID:"", RemoteName:"", Email:"", Name:"", URL:"", ImportURL:""}`
  2036  	if got := v.String(); got != want {
  2037  		t.Errorf("SourceImportAuthor.String = %v, want %v", got, want)
  2038  	}
  2039  }
  2040  
  2041  func TestTeam_String(t *testing.T) {
  2042  	t.Parallel()
  2043  	v := Team{
  2044  		ID:                  Ptr(int64(0)),
  2045  		NodeID:              Ptr(""),
  2046  		Name:                Ptr(""),
  2047  		Description:         Ptr(""),
  2048  		URL:                 Ptr(""),
  2049  		Slug:                Ptr(""),
  2050  		Permission:          Ptr(""),
  2051  		Privacy:             Ptr(""),
  2052  		NotificationSetting: Ptr(""),
  2053  		MembersCount:        Ptr(0),
  2054  		ReposCount:          Ptr(0),
  2055  		Organization:        &Organization{},
  2056  		HTMLURL:             Ptr(""),
  2057  		MembersURL:          Ptr(""),
  2058  		RepositoriesURL:     Ptr(""),
  2059  		Parent:              &Team{},
  2060  		LDAPDN:              Ptr(""),
  2061  		Assignment:          Ptr(""),
  2062  	}
  2063  	want := `github.Team{ID:0, NodeID:"", Name:"", Description:"", URL:"", Slug:"", Permission:"", Privacy:"", NotificationSetting:"", MembersCount:0, ReposCount:0, Organization:github.Organization{}, HTMLURL:"", MembersURL:"", RepositoriesURL:"", Parent:github.Team{}, LDAPDN:"", Assignment:""}`
  2064  	if got := v.String(); got != want {
  2065  		t.Errorf("Team.String = %v, want %v", got, want)
  2066  	}
  2067  }
  2068  
  2069  func TestTeamDiscussion_String(t *testing.T) {
  2070  	t.Parallel()
  2071  	v := TeamDiscussion{
  2072  		Author:        &User{},
  2073  		Body:          Ptr(""),
  2074  		BodyHTML:      Ptr(""),
  2075  		BodyVersion:   Ptr(""),
  2076  		CommentsCount: Ptr(0),
  2077  		CommentsURL:   Ptr(""),
  2078  		CreatedAt:     &Timestamp{},
  2079  		LastEditedAt:  &Timestamp{},
  2080  		HTMLURL:       Ptr(""),
  2081  		NodeID:        Ptr(""),
  2082  		Number:        Ptr(0),
  2083  		Pinned:        Ptr(false),
  2084  		Private:       Ptr(false),
  2085  		TeamURL:       Ptr(""),
  2086  		Title:         Ptr(""),
  2087  		UpdatedAt:     &Timestamp{},
  2088  		URL:           Ptr(""),
  2089  		Reactions:     &Reactions{},
  2090  	}
  2091  	want := `github.TeamDiscussion{Author:github.User{}, Body:"", BodyHTML:"", BodyVersion:"", CommentsCount:0, CommentsURL:"", CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, LastEditedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, HTMLURL:"", NodeID:"", Number:0, Pinned:false, Private:false, TeamURL:"", Title:"", UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, URL:"", Reactions:github.Reactions{}}`
  2092  	if got := v.String(); got != want {
  2093  		t.Errorf("TeamDiscussion.String = %v, want %v", got, want)
  2094  	}
  2095  }
  2096  
  2097  func TestTeamLDAPMapping_String(t *testing.T) {
  2098  	t.Parallel()
  2099  	v := TeamLDAPMapping{
  2100  		ID:              Ptr(int64(0)),
  2101  		LDAPDN:          Ptr(""),
  2102  		URL:             Ptr(""),
  2103  		Name:            Ptr(""),
  2104  		Slug:            Ptr(""),
  2105  		Description:     Ptr(""),
  2106  		Privacy:         Ptr(""),
  2107  		Permission:      Ptr(""),
  2108  		MembersURL:      Ptr(""),
  2109  		RepositoriesURL: Ptr(""),
  2110  	}
  2111  	want := `github.TeamLDAPMapping{ID:0, LDAPDN:"", URL:"", Name:"", Slug:"", Description:"", Privacy:"", Permission:"", MembersURL:"", RepositoriesURL:""}`
  2112  	if got := v.String(); got != want {
  2113  		t.Errorf("TeamLDAPMapping.String = %v, want %v", got, want)
  2114  	}
  2115  }
  2116  
  2117  func TestTextMatch_String(t *testing.T) {
  2118  	t.Parallel()
  2119  	v := TextMatch{
  2120  		ObjectURL:  Ptr(""),
  2121  		ObjectType: Ptr(""),
  2122  		Property:   Ptr(""),
  2123  		Fragment:   Ptr(""),
  2124  	}
  2125  	want := `github.TextMatch{ObjectURL:"", ObjectType:"", Property:"", Fragment:""}`
  2126  	if got := v.String(); got != want {
  2127  		t.Errorf("TextMatch.String = %v, want %v", got, want)
  2128  	}
  2129  }
  2130  
  2131  func TestTree_String(t *testing.T) {
  2132  	t.Parallel()
  2133  	v := Tree{
  2134  		SHA:       Ptr(""),
  2135  		Truncated: Ptr(false),
  2136  	}
  2137  	want := `github.Tree{SHA:"", Truncated:false}`
  2138  	if got := v.String(); got != want {
  2139  		t.Errorf("Tree.String = %v, want %v", got, want)
  2140  	}
  2141  }
  2142  
  2143  func TestTreeEntry_String(t *testing.T) {
  2144  	t.Parallel()
  2145  	v := TreeEntry{
  2146  		SHA:     Ptr(""),
  2147  		Path:    Ptr(""),
  2148  		Mode:    Ptr(""),
  2149  		Type:    Ptr(""),
  2150  		Size:    Ptr(0),
  2151  		Content: Ptr(""),
  2152  		URL:     Ptr(""),
  2153  	}
  2154  	want := `github.TreeEntry{SHA:"", Path:"", Mode:"", Type:"", Size:0, Content:"", URL:""}`
  2155  	if got := v.String(); got != want {
  2156  		t.Errorf("TreeEntry.String = %v, want %v", got, want)
  2157  	}
  2158  }
  2159  
  2160  func TestUser_String(t *testing.T) {
  2161  	t.Parallel()
  2162  	v := User{
  2163  		Login:                   Ptr(""),
  2164  		ID:                      Ptr(int64(0)),
  2165  		NodeID:                  Ptr(""),
  2166  		AvatarURL:               Ptr(""),
  2167  		HTMLURL:                 Ptr(""),
  2168  		GravatarID:              Ptr(""),
  2169  		Name:                    Ptr(""),
  2170  		Company:                 Ptr(""),
  2171  		Blog:                    Ptr(""),
  2172  		Location:                Ptr(""),
  2173  		Email:                   Ptr(""),
  2174  		Hireable:                Ptr(false),
  2175  		Bio:                     Ptr(""),
  2176  		TwitterUsername:         Ptr(""),
  2177  		PublicRepos:             Ptr(0),
  2178  		PublicGists:             Ptr(0),
  2179  		Followers:               Ptr(0),
  2180  		Following:               Ptr(0),
  2181  		CreatedAt:               &Timestamp{},
  2182  		UpdatedAt:               &Timestamp{},
  2183  		SuspendedAt:             &Timestamp{},
  2184  		Type:                    Ptr(""),
  2185  		SiteAdmin:               Ptr(false),
  2186  		TotalPrivateRepos:       Ptr(int64(0)),
  2187  		OwnedPrivateRepos:       Ptr(int64(0)),
  2188  		PrivateGists:            Ptr(0),
  2189  		DiskUsage:               Ptr(0),
  2190  		Collaborators:           Ptr(0),
  2191  		TwoFactorAuthentication: Ptr(false),
  2192  		Plan:                    &Plan{},
  2193  		LdapDn:                  Ptr(""),
  2194  		URL:                     Ptr(""),
  2195  		EventsURL:               Ptr(""),
  2196  		FollowingURL:            Ptr(""),
  2197  		FollowersURL:            Ptr(""),
  2198  		GistsURL:                Ptr(""),
  2199  		OrganizationsURL:        Ptr(""),
  2200  		ReceivedEventsURL:       Ptr(""),
  2201  		ReposURL:                Ptr(""),
  2202  		StarredURL:              Ptr(""),
  2203  		SubscriptionsURL:        Ptr(""),
  2204  		RoleName:                Ptr(""),
  2205  		Assignment:              Ptr(""),
  2206  	}
  2207  	want := `github.User{Login:"", ID:0, NodeID:"", AvatarURL:"", HTMLURL:"", GravatarID:"", Name:"", Company:"", Blog:"", Location:"", Email:"", Hireable:false, Bio:"", TwitterUsername:"", PublicRepos:0, PublicGists:0, Followers:0, Following:0, CreatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, UpdatedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, SuspendedAt:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, Type:"", SiteAdmin:false, TotalPrivateRepos:0, OwnedPrivateRepos:0, PrivateGists:0, DiskUsage:0, Collaborators:0, TwoFactorAuthentication:false, Plan:github.Plan{}, LdapDn:"", URL:"", EventsURL:"", FollowingURL:"", FollowersURL:"", GistsURL:"", OrganizationsURL:"", ReceivedEventsURL:"", ReposURL:"", StarredURL:"", SubscriptionsURL:"", RoleName:"", Assignment:""}`
  2208  	if got := v.String(); got != want {
  2209  		t.Errorf("User.String = %v, want %v", got, want)
  2210  	}
  2211  }
  2212  
  2213  func TestUserLDAPMapping_String(t *testing.T) {
  2214  	t.Parallel()
  2215  	v := UserLDAPMapping{
  2216  		ID:                Ptr(int64(0)),
  2217  		LDAPDN:            Ptr(""),
  2218  		Login:             Ptr(""),
  2219  		AvatarURL:         Ptr(""),
  2220  		GravatarID:        Ptr(""),
  2221  		Type:              Ptr(""),
  2222  		SiteAdmin:         Ptr(false),
  2223  		URL:               Ptr(""),
  2224  		EventsURL:         Ptr(""),
  2225  		FollowingURL:      Ptr(""),
  2226  		FollowersURL:      Ptr(""),
  2227  		GistsURL:          Ptr(""),
  2228  		OrganizationsURL:  Ptr(""),
  2229  		ReceivedEventsURL: Ptr(""),
  2230  		ReposURL:          Ptr(""),
  2231  		StarredURL:        Ptr(""),
  2232  		SubscriptionsURL:  Ptr(""),
  2233  	}
  2234  	want := `github.UserLDAPMapping{ID:0, LDAPDN:"", Login:"", AvatarURL:"", GravatarID:"", Type:"", SiteAdmin:false, URL:"", EventsURL:"", FollowingURL:"", FollowersURL:"", GistsURL:"", OrganizationsURL:"", ReceivedEventsURL:"", ReposURL:"", StarredURL:"", SubscriptionsURL:""}`
  2235  	if got := v.String(); got != want {
  2236  		t.Errorf("UserLDAPMapping.String = %v, want %v", got, want)
  2237  	}
  2238  }
  2239  
  2240  func TestUserMigration_String(t *testing.T) {
  2241  	t.Parallel()
  2242  	v := UserMigration{
  2243  		ID:                 Ptr(int64(0)),
  2244  		GUID:               Ptr(""),
  2245  		State:              Ptr(""),
  2246  		LockRepositories:   Ptr(false),
  2247  		ExcludeAttachments: Ptr(false),
  2248  		URL:                Ptr(""),
  2249  		CreatedAt:          Ptr(""),
  2250  		UpdatedAt:          Ptr(""),
  2251  	}
  2252  	want := `github.UserMigration{ID:0, GUID:"", State:"", LockRepositories:false, ExcludeAttachments:false, URL:"", CreatedAt:"", UpdatedAt:""}`
  2253  	if got := v.String(); got != want {
  2254  		t.Errorf("UserMigration.String = %v, want %v", got, want)
  2255  	}
  2256  }
  2257  
  2258  func TestUserStats_String(t *testing.T) {
  2259  	t.Parallel()
  2260  	v := UserStats{
  2261  		TotalUsers:     Ptr(0),
  2262  		AdminUsers:     Ptr(0),
  2263  		SuspendedUsers: Ptr(0),
  2264  	}
  2265  	want := `github.UserStats{TotalUsers:0, AdminUsers:0, SuspendedUsers:0}`
  2266  	if got := v.String(); got != want {
  2267  		t.Errorf("UserStats.String = %v, want %v", got, want)
  2268  	}
  2269  }
  2270  
  2271  func TestWeeklyCommitActivity_String(t *testing.T) {
  2272  	t.Parallel()
  2273  	v := WeeklyCommitActivity{
  2274  		Days:  []int{0},
  2275  		Total: Ptr(0),
  2276  		Week:  &Timestamp{},
  2277  	}
  2278  	want := `github.WeeklyCommitActivity{Days:[0], Total:0, Week:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}}`
  2279  	if got := v.String(); got != want {
  2280  		t.Errorf("WeeklyCommitActivity.String = %v, want %v", got, want)
  2281  	}
  2282  }
  2283  
  2284  func TestWeeklyStats_String(t *testing.T) {
  2285  	t.Parallel()
  2286  	v := WeeklyStats{
  2287  		Week:      &Timestamp{},
  2288  		Additions: Ptr(0),
  2289  		Deletions: Ptr(0),
  2290  		Commits:   Ptr(0),
  2291  	}
  2292  	want := `github.WeeklyStats{Week:github.Timestamp{0001-01-01 00:00:00 +0000 UTC}, Additions:0, Deletions:0, Commits:0}`
  2293  	if got := v.String(); got != want {
  2294  		t.Errorf("WeeklyStats.String = %v, want %v", got, want)
  2295  	}
  2296  }