aboutsummaryrefslogtreecommitdiff
path: root/repo_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-01-27 19:05:00 +0100
committerGravatar Runxi Yu2026-01-27 19:09:10 +0100
commit6002485582541df9dff3e2c782a014564e22ed07 (patch)
tree0eeb6398044053859c2d80b7b8bc2e13d7fc01ac /repo_test.go
parentTODO: HashAlgorithm interface? compression agility? (diff)
signatureNo signature
hash: Use a hashAlgorithmDetails struct for single source of truth v0.1.2
hashAlgorithm's are assumed to be valid; methods on invalid hashAlgorithms will panic from out-of-bounds read when it's not found in hashAlgorithmTable and that's expected and intended.
Diffstat (limited to 'repo_test.go')
-rw-r--r--repo_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/repo_test.go b/repo_test.go
index c4a0e059..3e622e37 100644
--- a/repo_test.go
+++ b/repo_test.go
@@ -17,7 +17,7 @@ func TestRepositoryOpen(t *testing.T) {
if repo.rootPath != repoPath {
t.Errorf("rootPath: got %q, want %q", repo.rootPath, repoPath)
}
- hashSize := repo.hashAlgo.size()
+ hashSize := repo.hashAlgo.Size()
if hashSize != 32 && hashSize != 20 {
t.Errorf("hashSize: got %d, want 32 (SHA-256) or 20 (SHA-1)", hashSize)
}