diff options
| author | 2026-01-27 19:05:00 +0100 | |
|---|---|---|
| committer | 2026-01-27 19:09:10 +0100 | |
| commit | 6002485582541df9dff3e2c782a014564e22ed07 (patch) | |
| tree | 0eeb6398044053859c2d80b7b8bc2e13d7fc01ac /hash_test.go | |
| parent | TODO: HashAlgorithm interface? compression agility? (diff) | |
| signature | No 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 'hash_test.go')
| -rw-r--r-- | hash_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hash_test.go b/hash_test.go index dcbd7027..0b15fd38 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.hashAlgo.size() == 32 { + if repo.hashAlgo.Size() == 32 { validHash = "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef" expectedSize = 32 } else { |
