aboutsummaryrefslogtreecommitdiff
path: root/hash_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-01-17 23:00:14 +0800
committerGravatar Runxi Yu2026-01-17 23:00:14 +0800
commit90b5f779080272d5c6ef39e0c93d8592840a53b7 (patch)
treea954e45ec18d8a8dac49c8a3a60eae19a4c4f65e /hash_test.go
parenthash: Key by algorithm, not size (diff)
signatureNo signature
repo: Drop hashSize and use hashAlgo.size()
Diffstat (limited to 'hash_test.go')
-rw-r--r--hash_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hash_test.go b/hash_test.go
index dab1d49e..dcbd7027 100644
--- a/hash_test.go
+++ b/hash_test.go
@@ -18,7 +18,7 @@ func TestHashParse(t *testing.T) {
var validHash string
var expectedSize int
- if repo.hashSize == 32 {
+ if repo.hashAlgo.size() == 32 {
validHash = "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
expectedSize = 32
} else {