MCPcopy
hub / github.com/perkeep/perkeep / TestParseZipMetaRow

Function TestParseZipMetaRow

pkg/blobserver/blobpacked/blobpacked_test.go:284–382  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

282}
283
284func TestParseZipMetaRow(t *testing.T) {
285 tests := []struct {
286 zm zipMetaInfo
287 wholeRef blob.Ref
288 offset uint64
289 }{
290 {
291 zm: zipMetaInfo{
292 zipSize: 16738962,
293 wholeSize: 139639864,
294 dataSize: 16659276,
295 wholeRef: blob.MustParse("sha224-d003d3cf9784df4efe617ba319c5028fe93e5e9188cc448bf6d655b4"),
296 },
297 offset: 0,
298 },
299 {
300 zm: zipMetaInfo{
301 zipSize: 16739170,
302 wholeSize: 139639864,
303 dataSize: 16670204,
304 wholeRef: blob.MustParse("sha224-d003d3cf9784df4efe617ba319c5028fe93e5e9188cc448bf6d655b4"),
305 },
306 offset: 16659276,
307 },
308 {
309 zm: zipMetaInfo{
310 zipSize: 16744577,
311 wholeSize: 139639864,
312 dataSize: 16668625,
313 wholeRef: blob.MustParse("sha224-d003d3cf9784df4efe617ba319c5028fe93e5e9188cc448bf6d655b4"),
314 },
315 offset: 33329480,
316 },
317 {
318 zm: zipMetaInfo{
319 zipSize: 16628223,
320 wholeSize: 139639864,
321 dataSize: 16555478,
322 wholeRef: blob.MustParse("sha224-d003d3cf9784df4efe617ba319c5028fe93e5e9188cc448bf6d655b4"),
323 },
324 offset: 49998105,
325 },
326 {
327 zm: zipMetaInfo{
328 zipSize: 16735901,
329 wholeSize: 139639864,
330 dataSize: 16661990,
331 wholeRef: blob.MustParse("sha224-d003d3cf9784df4efe617ba319c5028fe93e5e9188cc448bf6d655b4"),
332 },
333 offset: 66553583,
334 },
335 {
336 zm: zipMetaInfo{
337 zipSize: 16628162,
338 wholeSize: 139639864,
339 dataSize: 16555638,
340 wholeRef: blob.MustParse("sha224-d003d3cf9784df4efe617ba319c5028fe93e5e9188cc448bf6d655b4"),
341 },

Callers

nothing calls this directly

Calls 4

MustParseFunction · 0.92
parseZipMetaRowFunction · 0.85
rowValueMethod · 0.80
FatalMethod · 0.80

Tested by

no test coverage detected