aboutsummaryrefslogtreecommitdiff
path: root/object/commit_parse_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-02-20 22:59:14 +0800
committerGravatar Runxi Yu2026-02-20 22:59:14 +0800
commitd88c8e20aebd9408df0306e97dffc2896950342d (patch)
tree8e137f37fdd9ea673bd622a2b9c9873cd89278fb /object/commit_parse_test.go
parentobjectid: Use _test package for tests (diff)
signatureNo signature
*: Replace repo with testRepo
Diffstat (limited to 'object/commit_parse_test.go')
-rw-r--r--object/commit_parse_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/object/commit_parse_test.go b/object/commit_parse_test.go
index e1bfb3d1..66061f73 100644
--- a/object/commit_parse_test.go
+++ b/object/commit_parse_test.go
@@ -11,10 +11,10 @@ import (
func TestCommitParseFromGit(t *testing.T) {
testgit.ForEachAlgorithm(t, func(t *testing.T, algo objectid.Algorithm) {
- repo := testgit.NewBareRepo(t, algo)
- _, treeID, commitID := repo.MakeCommit(t, "subject\n\nbody")
+ testRepo := testgit.NewBareRepo(t, algo)
+ _, treeID, commitID := testRepo.MakeCommit(t, "subject\n\nbody")
- rawBody := repo.CatFile(t, "commit", commitID)
+ rawBody := testRepo.CatFile(t, "commit", commitID)
commit, err := object.ParseCommit(rawBody, algo)
if err != nil {
t.Fatalf("ParseCommit: %v", err)