@@ -89,37 +89,37 @@ func TestString(t *testing.T) {
8989 in interface {}
9090 out string
9191 }{
92+ {CodeResult {Name : String ("n" )}, `github.CodeResult{Name:"n"}` },
93+ {CommitAuthor {Name : String ("n" )}, `github.CommitAuthor{Name:"n"}` },
94+ {CommitFile {SHA : String ("s" )}, `github.CommitFile{SHA:"s"}` },
95+ {CommitStats {Total : Int (1 )}, `github.CommitStats{Total:1}` },
96+ {CommitsComparison {TotalCommits : Int (1 )}, `github.CommitsComparison{TotalCommits:1}` },
97+ {Commit {SHA : String ("s" )}, `github.Commit{SHA:"s"}` },
9298 {Event {ID : String ("1" )}, `github.Event{ID:"1"}` },
93- {PushEvent {PushID : Int (1 )}, `github.PushEvent{PushID:1}` },
94- {PushEventCommit {SHA : String ("s" )}, `github.PushEventCommit{SHA:"s"}` },
95- {Gist {ID : String ("1" )}, `github.Gist{ID:"1", Files:map[]}` },
96- {GistFile {Size : Int (1 )}, `github.GistFile{Size:1}` },
9799 {GistComment {ID : Int (1 )}, `github.GistComment{ID:1}` },
98- {Commit {SHA : String ("s" )}, `github.Commit{SHA:"s"}` },
99- {CommitAuthor {Name : String ("n" )}, `github.CommitAuthor{Name:"n"}` },
100- {Tree {SHA : String ("s" )}, `github.Tree{SHA:"s"}` },
101- {TreeEntry {SHA : String ("s" )}, `github.TreeEntry{SHA:"s"}` },
102- {Issue {Number : Int (1 )}, `github.Issue{Number:1}` },
100+ {GistFile {Size : Int (1 )}, `github.GistFile{Size:1}` },
101+ {Gist {ID : String ("1" )}, `github.Gist{ID:"1", Files:map[]}` },
102+ {Hook {ID : Int (1 )}, `github.Hook{Config:map[], ID:1}` },
103103 {IssueComment {ID : Int (1 )}, `github.IssueComment{ID:1}` },
104+ {Issue {Number : Int (1 )}, `github.Issue{Number:1}` },
105+ {Key {ID : Int (1 )}, `github.Key{ID:1}` },
104106 {Label {Name : String ("l" )}, "l" },
105107 {Organization {ID : Int (1 )}, `github.Organization{ID:1}` },
106- {Team {ID : Int (1 )}, `github.Team{ID:1}` },
107- {PullRequest {Number : Int (1 )}, `github.PullRequest{Number:1}` },
108108 {PullRequestComment {ID : Int (1 )}, `github.PullRequestComment{ID:1}` },
109- {Repository {ID : Int (1 )}, `github.Repository{ID:1}` },
109+ {PullRequest {Number : Int (1 )}, `github.PullRequest{Number:1}` },
110+ {PushEventCommit {SHA : String ("s" )}, `github.PushEventCommit{SHA:"s"}` },
111+ {PushEvent {PushID : Int (1 )}, `github.PushEvent{PushID:1}` },
112+ {RepoStatus {ID : Int (1 )}, `github.RepoStatus{ID:1}` },
110113 {RepositoryComment {ID : Int (1 )}, `github.RepositoryComment{ID:1}` },
111114 {RepositoryCommit {SHA : String ("s" )}, `github.RepositoryCommit{SHA:"s"}` },
112- {CommitStats {Total : Int (1 )}, `github.CommitStats{Total:1}` },
113- {CommitFile {SHA : String ("s" )}, `github.CommitFile{SHA:"s"}` },
114- {CommitsComparison {TotalCommits : Int (1 )}, `github.CommitsComparison{TotalCommits:1}` },
115- {WebHookPayload {Ref : String ("r" )}, `github.WebHookPayload{Ref:"r"}` },
116- {WebHookCommit {ID : String ("1" )}, `github.WebHookCommit{ID:"1"}` },
117- {WebHookAuthor {Name : String ("n" )}, `github.WebHookAuthor{Name:"n"}` },
118- {Hook {ID : Int (1 )}, `github.Hook{Config:map[], ID:1}` },
119- {RepoStatus {ID : Int (1 )}, `github.RepoStatus{ID:1}` },
120- {CodeResult {Name : String ("n" )}, `github.CodeResult{Name:"n"}` },
115+ {Repository {ID : Int (1 )}, `github.Repository{ID:1}` },
116+ {Team {ID : Int (1 )}, `github.Team{ID:1}` },
117+ {TreeEntry {SHA : String ("s" )}, `github.TreeEntry{SHA:"s"}` },
118+ {Tree {SHA : String ("s" )}, `github.Tree{SHA:"s"}` },
121119 {User {ID : Int (1 )}, `github.User{ID:1}` },
122- {Key {ID : Int (1 )}, `github.Key{ID:1}` },
120+ {WebHookAuthor {Name : String ("n" )}, `github.WebHookAuthor{Name:"n"}` },
121+ {WebHookCommit {ID : String ("1" )}, `github.WebHookCommit{ID:"1"}` },
122+ {WebHookPayload {Ref : String ("r" )}, `github.WebHookPayload{Ref:"r"}` },
123123 }
124124
125125 for i , tt := range tests {
0 commit comments