@@ -43,15 +43,15 @@ procedure TTestGitRecords.Test_git_commit;
43
43
else raise Exception.CreateFmt(' Unhandled condition (%0:s)' , [Value ]);
44
44
end ;
45
45
begin
46
- CheckEquals(112 , sizeof(git_commit), ' git_commit' );
46
+ CheckEquals( 88 , sizeof(git_commit), ' git_commit' );
47
47
48
48
CheckEquals( 0 , offsetof(' object_' ), ' object_' );
49
- CheckEquals( 56 , offsetof(' parent_oids' ), ' parent_oids' );
50
- CheckEquals( 76 , offsetof(' tree_oid' ), ' tree_oid' );
51
- CheckEquals( 96 , offsetof(' author' ), ' author' );
52
- CheckEquals(100 , offsetof(' committer' ), ' committer' );
53
- CheckEquals(104 , offsetof(' message_' ), ' message_' );
54
- CheckEquals(108 , offsetof(' message_short' ), ' message_short' );
49
+ CheckEquals( 32 , offsetof(' parent_oids' ), ' parent_oids' );
50
+ CheckEquals( 52 , offsetof(' tree_oid' ), ' tree_oid' );
51
+ CheckEquals( 72 , offsetof(' author' ), ' author' );
52
+ CheckEquals( 76 , offsetof(' committer' ), ' committer' );
53
+ CheckEquals( 80 , offsetof(' message_' ), ' message_' );
54
+ CheckEquals( 84 , offsetof(' message_short' ), ' message_short' );
55
55
end ;
56
56
57
57
procedure TTestGitRecords.Test_git_index ;
@@ -120,19 +120,23 @@ procedure TTestGitRecords.Test_git_odb_backend;
120
120
else if Value = ' read' then Result := Integer(@item.read) - Integer(@item)
121
121
else if Value = ' read_header' then Result := Integer(@item.read_header) - Integer(@item)
122
122
else if Value = ' write' then Result := Integer(@item.write) - Integer(@item)
123
+ else if Value = ' writestream' then Result := Integer(@item.writestream) - Integer(@item)
124
+ else if Value = ' readstream' then Result := Integer(@item.readstream) - Integer(@item)
123
125
else if Value = ' exists' then Result := Integer(@item.exists) - Integer(@item)
124
126
else if Value = ' free' then Result := Integer(@item.free) - Integer(@item)
125
127
else raise Exception.CreateFmt(' Unhandled condition (%0:s)' , [Value ]);
126
128
end ;
127
129
begin
128
- CheckEquals( 24 , sizeof(git_odb_backend), ' git_odb_backend size' );
130
+ CheckEquals( 32 , sizeof(git_odb_backend), ' git_odb_backend size' );
129
131
130
132
CheckEquals( 0 , offsetof(' odb' ), ' odb' );
131
133
CheckEquals( 4 , offsetof(' read' ), ' read' );
132
134
CheckEquals( 8 , offsetof(' read_header' ), ' read_header' );
133
135
CheckEquals( 12 , offsetof(' write' ), ' write' );
134
- CheckEquals( 16 , offsetof(' exists' ), ' exists' );
135
- CheckEquals( 20 , offsetof(' free' ), ' free' );
136
+ CheckEquals( 16 , offsetof(' writestream' ), ' writestream' );
137
+ CheckEquals( 20 , offsetof(' readstream' ), ' readstream' );
138
+ CheckEquals( 24 , offsetof(' exists' ), ' exists' );
139
+ CheckEquals( 28 , offsetof(' free' ), ' free' );
136
140
end ;
137
141
138
142
procedure TTestGitRecords.Test_git_reference ;
@@ -187,14 +191,14 @@ procedure TTestGitRecords.Test_git_tag;
187
191
else raise Exception.CreateFmt(' Unhandled condition (%0:s)' , [Value ]);
188
192
end ;
189
193
begin
190
- CheckEquals( 92 , sizeof(git_tag), ' git_tag size' );
194
+ CheckEquals( 68 , sizeof(git_tag), ' git_tag size' );
191
195
192
196
CheckEquals( 0 , offsetof(' object_' ), ' object_' );
193
- CheckEquals( 56 , offsetof(' target' ), ' target' );
194
- CheckEquals( 76 , offsetof(' type_' ), ' type_' );
195
- CheckEquals( 80 , offsetof(' tag_name' ), ' tag_name' );
196
- CheckEquals( 84 , offsetof(' tagger' ), ' tagger' );
197
- CheckEquals( 88 , offsetof(' message_' ), ' message_' );
197
+ CheckEquals( 32 , offsetof(' target' ), ' target' );
198
+ CheckEquals( 52 , offsetof(' type_' ), ' type_' );
199
+ CheckEquals( 56 , offsetof(' tag_name' ), ' tag_name' );
200
+ CheckEquals( 60 , offsetof(' tagger' ), ' tagger' );
201
+ CheckEquals( 64 , offsetof(' message_' ), ' message_' );
198
202
end ;
199
203
200
204
procedure TTestGitRecords.Test_git_time ;
@@ -251,9 +255,9 @@ procedure TTestGitRecords.Test_sizes;
251
255
CheckEquals( 48 , sizeof(git_index), ' git_index' );
252
256
CheckEquals( 8 , sizeof(git_hashtable_node), ' git_hashtable_node' );
253
257
CheckEquals( 28 , sizeof(git_hashtable), ' git_hashtable' );
254
- CheckEquals( 60 , sizeof(git_repository), ' git_repository' );
258
+ CheckEquals( 64 , sizeof(git_repository), ' git_repository' );
255
259
CheckEquals( 32 , sizeof(git_tree_entry), ' git_tree_entry' );
256
- CheckEquals( 76 , sizeof(git_tree), ' git_tree' );
260
+ CheckEquals( 52 , sizeof(git_tree), ' git_tree' );
257
261
CheckEquals( 8 , sizeof(git_refcache), ' git_refcache' );
258
262
end ;
259
263
0 commit comments