(t *testing.T)
| 90 | } |
| 91 | |
| 92 | func TestObjectOwner(t *testing.T) { |
| 93 | t.Parallel() |
| 94 | repo := createTestRepo(t) |
| 95 | defer cleanupTestRepo(t, repo) |
| 96 | |
| 97 | commitId, treeId := seedTestRepo(t, repo) |
| 98 | |
| 99 | commit, err := repo.LookupCommit(commitId) |
| 100 | checkFatal(t, err) |
| 101 | |
| 102 | tree, err := repo.LookupTree(treeId) |
| 103 | checkFatal(t, err) |
| 104 | |
| 105 | checkOwner(t, repo, commit.Object) |
| 106 | checkOwner(t, repo, tree.Object) |
| 107 | } |
| 108 | |
| 109 | func checkShortId(t *testing.T, Id, shortId string) { |
| 110 | if len(shortId) < 7 || len(shortId) >= len(Id) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…