| 397 | } |
| 398 | |
| 399 | func TestCommit_String(t *testing.T) { |
| 400 | t.Parallel() |
| 401 | v := Commit{ |
| 402 | SHA: Ptr(""), |
| 403 | Author: &CommitAuthor{}, |
| 404 | Committer: &CommitAuthor{}, |
| 405 | Message: Ptr(""), |
| 406 | Tree: &Tree{}, |
| 407 | HTMLURL: Ptr(""), |
| 408 | URL: Ptr(""), |
| 409 | Verification: &SignatureVerification{}, |
| 410 | NodeID: Ptr(""), |
| 411 | CommentCount: Ptr(0), |
| 412 | } |
| 413 | want := `github.Commit{SHA:"", Author:github.CommitAuthor{}, Committer:github.CommitAuthor{}, Message:"", Tree:github.Tree{}, HTMLURL:"", URL:"", Verification:github.SignatureVerification{}, NodeID:"", CommentCount:0}` |
| 414 | if got := v.String(); got != want { |
| 415 | t.Errorf("Commit.String = %v, want %v", got, want) |
| 416 | } |
| 417 | } |
| 418 | |
| 419 | func TestCommitAuthor_String(t *testing.T) { |
| 420 | t.Parallel() |