|
|
|
@ -89,37 +89,37 @@ func TestString(t *testing.T) { |
|
|
|
in interface{} |
|
|
|
out string |
|
|
|
}{ |
|
|
|
{CodeResult{Name: String("n")}, `github.CodeResult{Name:"n"}`}, |
|
|
|
{CommitAuthor{Name: String("n")}, `github.CommitAuthor{Name:"n"}`}, |
|
|
|
{CommitFile{SHA: String("s")}, `github.CommitFile{SHA:"s"}`}, |
|
|
|
{CommitStats{Total: Int(1)}, `github.CommitStats{Total:1}`}, |
|
|
|
{CommitsComparison{TotalCommits: Int(1)}, `github.CommitsComparison{TotalCommits:1}`}, |
|
|
|
{Commit{SHA: String("s")}, `github.Commit{SHA:"s"}`}, |
|
|
|
{Event{ID: String("1")}, `github.Event{ID:"1"}`}, |
|
|
|
{PushEvent{PushID: Int(1)}, `github.PushEvent{PushID:1}`}, |
|
|
|
{PushEventCommit{SHA: String("s")}, `github.PushEventCommit{SHA:"s"}`}, |
|
|
|
{Gist{ID: String("1")}, `github.Gist{ID:"1", Files:map[]}`}, |
|
|
|
{GistFile{Size: Int(1)}, `github.GistFile{Size:1}`}, |
|
|
|
{GistComment{ID: Int(1)}, `github.GistComment{ID:1}`}, |
|
|
|
{Commit{SHA: String("s")}, `github.Commit{SHA:"s"}`}, |
|
|
|
{CommitAuthor{Name: String("n")}, `github.CommitAuthor{Name:"n"}`}, |
|
|
|
{Tree{SHA: String("s")}, `github.Tree{SHA:"s"}`}, |
|
|
|
{TreeEntry{SHA: String("s")}, `github.TreeEntry{SHA:"s"}`}, |
|
|
|
{Issue{Number: Int(1)}, `github.Issue{Number:1}`}, |
|
|
|
{GistFile{Size: Int(1)}, `github.GistFile{Size:1}`}, |
|
|
|
{Gist{ID: String("1")}, `github.Gist{ID:"1", Files:map[]}`}, |
|
|
|
{Hook{ID: Int(1)}, `github.Hook{Config:map[], ID:1}`}, |
|
|
|
{IssueComment{ID: Int(1)}, `github.IssueComment{ID:1}`}, |
|
|
|
{Issue{Number: Int(1)}, `github.Issue{Number:1}`}, |
|
|
|
{Key{ID: Int(1)}, `github.Key{ID:1}`}, |
|
|
|
{Label{Name: String("l")}, "l"}, |
|
|
|
{Organization{ID: Int(1)}, `github.Organization{ID:1}`}, |
|
|
|
{Team{ID: Int(1)}, `github.Team{ID:1}`}, |
|
|
|
{PullRequest{Number: Int(1)}, `github.PullRequest{Number:1}`}, |
|
|
|
{PullRequestComment{ID: Int(1)}, `github.PullRequestComment{ID:1}`}, |
|
|
|
{Repository{ID: Int(1)}, `github.Repository{ID:1}`}, |
|
|
|
{PullRequest{Number: Int(1)}, `github.PullRequest{Number:1}`}, |
|
|
|
{PushEventCommit{SHA: String("s")}, `github.PushEventCommit{SHA:"s"}`}, |
|
|
|
{PushEvent{PushID: Int(1)}, `github.PushEvent{PushID:1}`}, |
|
|
|
{RepoStatus{ID: Int(1)}, `github.RepoStatus{ID:1}`}, |
|
|
|
{RepositoryComment{ID: Int(1)}, `github.RepositoryComment{ID:1}`}, |
|
|
|
{RepositoryCommit{SHA: String("s")}, `github.RepositoryCommit{SHA:"s"}`}, |
|
|
|
{CommitStats{Total: Int(1)}, `github.CommitStats{Total:1}`}, |
|
|
|
{CommitFile{SHA: String("s")}, `github.CommitFile{SHA:"s"}`}, |
|
|
|
{CommitsComparison{TotalCommits: Int(1)}, `github.CommitsComparison{TotalCommits:1}`}, |
|
|
|
{WebHookPayload{Ref: String("r")}, `github.WebHookPayload{Ref:"r"}`}, |
|
|
|
{WebHookCommit{ID: String("1")}, `github.WebHookCommit{ID:"1"}`}, |
|
|
|
{WebHookAuthor{Name: String("n")}, `github.WebHookAuthor{Name:"n"}`}, |
|
|
|
{Hook{ID: Int(1)}, `github.Hook{Config:map[], ID:1}`}, |
|
|
|
{RepoStatus{ID: Int(1)}, `github.RepoStatus{ID:1}`}, |
|
|
|
{CodeResult{Name: String("n")}, `github.CodeResult{Name:"n"}`}, |
|
|
|
{Repository{ID: Int(1)}, `github.Repository{ID:1}`}, |
|
|
|
{Team{ID: Int(1)}, `github.Team{ID:1}`}, |
|
|
|
{TreeEntry{SHA: String("s")}, `github.TreeEntry{SHA:"s"}`}, |
|
|
|
{Tree{SHA: String("s")}, `github.Tree{SHA:"s"}`}, |
|
|
|
{User{ID: Int(1)}, `github.User{ID:1}`}, |
|
|
|
{Key{ID: Int(1)}, `github.Key{ID:1}`}, |
|
|
|
{WebHookAuthor{Name: String("n")}, `github.WebHookAuthor{Name:"n"}`}, |
|
|
|
{WebHookCommit{ID: String("1")}, `github.WebHookCommit{ID:"1"}`}, |
|
|
|
{WebHookPayload{Ref: String("r")}, `github.WebHookPayload{Ref:"r"}`}, |
|
|
|
} |
|
|
|
|
|
|
|
for i, tt := range tests { |
|
|
|
|