3 Commits

Author SHA1 Message Date
Billy Keyes d104a6c22a Add error case tests for binary chunk parsing 2019-04-14 17:10:35 -07:00
Billy Keyes 62569e0d07 Add dedicated tests for base85 decoding
These are fairly basic as the decoder is also exercised by the fragment
parsing tests, but they cover some errror cases that may not be covered
otherwise.
2019-04-14 15:50:07 -07:00
Billy Keyes 8ce8cba533 Fix binary chunk decoding and inflating
Git uses a unique Base85 encoding with different characters than the
ascii85 encoding implemented by Go, so add a custom decoding function.
Once decoded, use zlib instead of the raw DEFLATE algorithm to
decompress the data.

These issues were caught by some basic parsing tests which are added
here as well.
2019-04-13 22:32:25 -07:00