aboutsummaryrefslogtreecommitdiff
path: root/object/blob_serialize_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/blob_serialize_test.go
parentobjectid: Use _test package for tests (diff)
signatureNo signature
*: Replace repo with testRepo
Diffstat (limited to 'object/blob_serialize_test.go')
-rw-r--r--object/blob_serialize_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/object/blob_serialize_test.go b/object/blob_serialize_test.go
index 07811365..4853d980 100644
--- a/object/blob_serialize_test.go
+++ b/object/blob_serialize_test.go
@@ -10,9 +10,9 @@ import (
func TestBlobSerialize(t *testing.T) {
testgit.ForEachAlgorithm(t, func(t *testing.T, algo objectid.Algorithm) {
- repo := testgit.NewBareRepo(t, algo)
+ testRepo := testgit.NewBareRepo(t, algo)
body := []byte("hello\nblob\n")
- wantID := repo.HashObject(t, "blob", body)
+ wantID := testRepo.HashObject(t, "blob", body)
blob := &object.Blob{Data: body}
rawObj, err := blob.SerializeWithHeader()