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