aboutsummaryrefslogtreecommitdiff
path: root/hash_sha1_test.go
diff options
context:
space:
mode:
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]
+)