aboutsummaryrefslogtreecommitdiff
path: root/hash_sha1_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
commit94bfb1fa147f80e6ec39009d41fc2f853925e0a5 (patch)
treee2c8063f3fbc58527e21f1f88e72f9e32071c28a /hash_sha1_test.go
parentREADME: Remove example program as it's unmaintainable now (diff)
signature
hash: Generic hash-algorithm API
Diffstat (limited to 'hash_sha1_test.go')
-rw-r--r--hash_sha1_test.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/hash_sha1_test.go b/hash_sha1_test.go
index 9f3137b9..8d5b4e9c 100644
--- a/hash_sha1_test.go
+++ b/hash_sha1_test.go
@@ -7,3 +7,15 @@ import (
)
const testHashSize = sha1.Size
+
+type (
+ testHashType = [sha1.Size]byte
+ TestHash = Hash[testHashType]
+ TestRepository = Repository[testHashType]
+ TestBlob = Blob[testHashType]
+ TestTree = Tree[testHashType]
+ TestTreeEntry = TreeEntry[testHashType]
+ TestCommit = Commit[testHashType]
+ TestTag = Tag[testHashType]
+ TestObject = Object[testHashType]
+)