comparison tests/test-hybridencode.py @ 17690:eb7f8359249a

test-hybridencode: in practice, extensions aren't really unbound in length due to the fact that we only get to encode files ending in .i and .d inside the store
author Adrian Buehlmann <adrian@cadifra.com>
date Sun, 30 Sep 2012 23:53:56 +0200
parents 57bf86677daa
children 8c019d2fd7c0
comparison
equal deleted inserted replaced
17689:aa0647830fd9 17690:eb7f8359249a
412 '123456789-123456') 412 '123456789-123456')
413 show('data/12345678/12345678/12345678/12345678/12345678/12345' 413 show('data/12345678/12345678/12345678/12345678/12345678/12345'
414 '678/12345678/12 /xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' 414 '678/12345678/12 /xx-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
415 '123456789-123456') 415 '123456789-123456')
416 416
417 print "extensions are replicated on hashed paths (unbounded!)" 417 print '''Extensions are replicated on hashed paths. Note that
418 show('data/12345678/12345678/12345678/12345678/12345678/12345' 418 we only get to encode files that end in .i or .d inside the
419 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' 419 store. Encoded filenames are thus bound in length.'''
420 '123456789-12.345') 420 show('data/12345678/12345678/12345678/12345678/12345678/12345'
421 show('data/12345678/12345678/12345678/12345678/12345678/12345' 421 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
422 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' 422 '123456789-12.345.i')
423 '123456789-12.3456') 423 show('data/12345678/12345678/12345678/12345678/12345678/12345'
424 show('data/12345678/12345678/12345678/12345678/12345678/12345' 424 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
425 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' 425 '123456789-12.345.d')
426 '123456789-12.34567') 426 show('data/12345678/12345678/12345678/12345678/12345678/12345'
427 show('data/12345678/12345678/12345678/12345678/12345678/12345' 427 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
428 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' 428 '123456789-12.3456.i')
429 '123456789-12.345678') 429 show('data/12345678/12345678/12345678/12345678/12345678/12345'
430 show('data/12345678/12345678/12345678/12345678/12345678/12345' 430 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
431 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' 431 '123456789-12.34567.i')
432 '123456789-12.3456789') 432 show('data/12345678/12345678/12345678/12345678/12345678/12345'
433 show('data/12345678/12345678/12345678/12345678/12345678/12345' 433 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
434 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' 434 '123456789-12.345678.i')
435 '123456789-12.3456789-') 435 show('data/12345678/12345678/12345678/12345678/12345678/12345'
436 show('data/12345678/12345678/12345678/12345678/12345678/12345' 436 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
437 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' 437 '123456789-12.3456789.i')
438 '123456789-12.3456789-1') 438 show('data/12345678/12345678/12345678/12345678/12345678/12345'
439 show('data/12345678/12345678/12345678/12345678/12345678/12345' 439 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
440 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' 440 '123456789-12.3456789-.i')
441 '123456789-12.3456789-12') 441 show('data/12345678/12345678/12345678/12345678/12345678/12345'
442 show('data/12345678/12345678/12345678/12345678/12345678/12345' 442 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
443 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' 443 '123456789-12.3456789-1.i')
444 '123456789-12.3456789-123') 444 show('data/12345678/12345678/12345678/12345678/12345678/12345'
445 show('data/12345678/12345678/12345678/12345678/12345678/12345' 445 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
446 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' 446 '123456789-12.3456789-12.i')
447 '123456789-12.3456789-1234') 447 show('data/12345678/12345678/12345678/12345678/12345678/12345'
448 show('data/12345678/12345678/12345678/12345678/12345678/12345' 448 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
449 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' 449 '123456789-12.3456789-123.i')
450 '123456789-12.3456789-12345') 450 show('data/12345678/12345678/12345678/12345678/12345678/12345'
451 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
452 '123456789-12.3456789-1234.i')
453 show('data/12345678/12345678/12345678/12345678/12345678/12345'
454 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
455 '123456789-12.3456789-12345.i')
451 show('data/12345678/12345678/12345678/12345678/12345678/12345' 456 show('data/12345678/12345678/12345678/12345678/12345678/12345'
452 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-' 457 '678/12345678/12345/-xxxxxxxxx-xxxxxxxxx-xxxxxxxxx-'
453 '123456789-12.3456789-12345-ABCDEFGHIJKLMNOPRSTUVWX' 458 '123456789-12.3456789-12345-ABCDEFGHIJKLMNOPRSTUVWX'
454 'YZ-abcdefghjiklmnopqrstuvwxyz-ABCDEFGHIJKLMNOPRSTU' 459 'YZ-abcdefghjiklmnopqrstuvwxyz-ABCDEFGHIJKLMNOPRSTU'
455 'VWXYZ-1234567890-xxxxxxxxx-xxxxxxxxx-xxxxxxxx-xxxx' 460 'VWXYZ-1234567890-xxxxxxxxx-xxxxxxxxx-xxxxxxxx-xxxx'
456 'xxxxx-wwwwwwwww-wwwwwwwww-wwwwwwwww-wwwwwwwww-wwww' 461 'xxxxx-wwwwwwwww-wwwwwwwww-wwwwwwwww-wwwwwwwww-wwww'
457 'wwwww-wwwwwwwww-wwwwwwwww-wwwwwwwww-wwwwwwwww') 462 'wwwww-wwwwwwwww-wwwwwwwww-wwwwwwwww-wwwwwwwww.i')