aboutsummaryrefslogtreecommitdiff
path: root/object/store/packed/read_test.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-06-13 03:32:21 +0000
committerGravatar Runxi Yu2026-06-13 04:59:51 +0000
commitbe63ecd9711b46135bbff1769c2e4c3642255ef1 (patch)
treed5581c8b2e438af2b8ae82dd8f200393b2dbc5d3 /object/store/packed/read_test.go
parentTODO: Update (diff)
Unify lengths
Diffstat (limited to 'object/store/packed/read_test.go')
-rw-r--r--object/store/packed/read_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/object/store/packed/read_test.go b/object/store/packed/read_test.go
index 02a3a5b0..64faaf5b 100644
--- a/object/store/packed/read_test.go
+++ b/object/store/packed/read_test.go
@@ -70,7 +70,7 @@ func TestReadGitPack(t *testing.T) {
t.Fatalf("ReadHeader(%s) type = %v, want %v", oid, ty, group.ty)
}
- if size != uint64(len(wantContent)) {
+ if size != len(wantContent) {
t.Fatalf("ReadHeader(%s) size = %d, want %d", oid, size, len(wantContent))
}
@@ -79,7 +79,7 @@ func TestReadGitPack(t *testing.T) {
t.Fatalf("ReadSize(%s): %v", oid, err)
}
- if size != uint64(len(wantContent)) {
+ if size != len(wantContent) {
t.Fatalf("ReadSize(%s) = %d, want %d", oid, size, len(wantContent))
}
@@ -105,7 +105,7 @@ func checkReaderContent(t *testing.T, packedStore *packed.Packed, oid id.ObjectI
t.Fatalf("ReadReaderContent(%s) type = %v, want %v", oid, ty, wantType)
}
- if size != uint64(len(wantContent)) {
+ if size != len(wantContent) {
t.Fatalf("ReadReaderContent(%s) size = %d, want %d", oid, size, len(wantContent))
}