diff options
| author | 2025-11-16 00:00:00 +0000 | |
|---|---|---|
| committer | 2025-11-16 00:00:00 +0000 | |
| commit | 94bfb1fa147f80e6ec39009d41fc2f853925e0a5 (patch) | |
| tree | e2c8063f3fbc58527e21f1f88e72f9e32071c28a /hash_sha256_test.go | |
| parent | README: Remove example program as it's unmaintainable now (diff) | |
| signature | ||
hash: Generic hash-algorithm API
Diffstat (limited to 'hash_sha256_test.go')
| -rw-r--r-- | hash_sha256_test.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hash_sha256_test.go b/hash_sha256_test.go index 0b735f0a..ce436ad7 100644 --- a/hash_sha256_test.go +++ b/hash_sha256_test.go @@ -7,3 +7,15 @@ import ( ) const testHashSize = sha256.Size + +type ( + testHashType = [sha256.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] +) |
