aboutsummaryrefslogtreecommitdiff
path: root/objects_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
commitedd37bb4fd3aa08eda39303fd5628a554a8c3aeb (patch)
tree9b438c2e0b64f880cc57c90446fcec8768e7730b /objects_test.go
parentMove config to its own package (diff)
signature
Separate stored object types from types that the user is expected to construct.
Diffstat (limited to 'objects_test.go')
-rw-r--r--objects_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/objects_test.go b/objects_test.go
index 141ba1d7..b191b865 100644
--- a/objects_test.go
+++ b/objects_test.go
@@ -58,8 +58,8 @@ func TestParseBlobAndSerialize(t *testing.T) {
if !bytes.Equal(blob.Data, data) {
t.Fatalf("blob data mismatch: %q", blob.Data)
}
- if blob.Hash != id {
- t.Fatalf("blob hash mismatch: %v", blob.Hash)
+ if blob.Hash() != id {
+ t.Fatalf("blob hash mismatch: %v", blob.Hash())
}
raw, err := blob.Serialize()
if err != nil {