Commit Graph

5 Commits

Author SHA1 Message Date
Billy Keyes 16539ad031 Add tests for parsing full binary fragments 2019-04-14 19:18:08 -07:00
Billy Keyes 69e4444419 Return preamble content when parsing files
This allows callers to provide patches with commit or email headers and
then retrieve that leading content for additional parsing without
having to identify where the first file in the patch starts.
2019-04-07 19:57:11 -07:00
Billy Keyes 07e5314a7c Remove second commit header from test file
While it's cool that this works, in a multi-file patch each file
immediately follow the final fragment of the previous file.
2019-04-07 17:49:15 -07:00
Billy Keyes 09c686917c Add test for multiple files in one patch
For simplicity, use the same fragments in both of these files and in the
single file test.
2019-04-06 19:13:42 -07:00
Billy Keyes 47d923e573 Add simple full file parsing test
For now, this uses JSON to print objects on error, which is hard to
debug. It should probably use something like google/go-cmp instead,
because these objects are now too large for direct comparison.
2019-04-03 23:01:44 -07:00