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