aboutsummaryrefslogtreecommitdiff
path: root/hash_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2025-11-16 00:00:00 +0000
committerGravatar Runxi Yu2025-11-16 00:00:00 +0000
commit3bde7664e748dd648f58c0a5280612c239dc0870 (patch)
treeb16d6427a70f4e49f4c0b47eead8d420612123fb /hash_test.go
parentRemove repo.Root (diff)
signature
Unexport Repository.HashSize
Diffstat (limited to 'hash_test.go')
-rw-r--r--hash_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hash_test.go b/hash_test.go
index 89e66fd1..212e5ef2 100644
--- a/hash_test.go
+++ b/hash_test.go
@@ -9,8 +9,8 @@ func TestParseHashValidAndInvalid(t *testing.T) {
pattern := "0123456789abcdef"
repeats := (testHashSize*2 + len(pattern) - 1) / len(pattern)
hexStr := strings.Repeat(pattern, repeats)[:testHashSize*2]
-
- repo := &Repository{HashSize: testHashSize}
+
+ repo := &Repository{hashSize: testHashSize}
id, err := repo.ParseHash(hexStr)
if err != nil {
t.Fatalf("ParseHash returned error: %v", err)