stable

Clone or download

Read-only

Unit test the parsing of the pack archives and indexes

The goal of this contribution is to have safety net before adding the support of 64-bit offset entries in the V2 index pack. This is part of request #11973: Support packfiles bigger than 2GB in the Git repo viewer Change-Id: Ic67674fc21951ec0ec4be52b6fd0da78b192f8cf

Modified Files

Name
M plugins/git/include/GitPHP/git/Pack.php +31 −25 Go to diff View file
A plugins/git/phpunit/GitPHP/PackTest.php +202 −0 Go to diff View file
A plugins/git/phpunit/GitPHP/fixtures/pack/archive.pack Binary file Go to diff View file
A plugins/git/phpunit/GitPHP/fixtures/pack/v1.idx Binary file Go to diff View file
A plugins/git/phpunit/GitPHP/fixtures/pack/v2-64bit-index-entries.idx Binary file Go to diff View file
A plugins/git/phpunit/GitPHP/fixtures/pack/v2.idx Binary file Go to diff View file
M tests/phpunit/phpunit.xml +1 −0 Go to diff View file