Billy Keyes
79aa2a9a77
Add positive tests for BinaryFragment#Apply
...
Covers basic literal and delta application. Input files were created by
using dd and the 'conv=notrunc' option to modify sections of files
created from /dev/urandom. All file start with two null bytes to
convince Git they are binary.
2020-01-16 21:52:40 -08:00
Billy Keyes
1b341e0693
Add error tests for TextFragment#ApplyStrict
...
These cover the errors that can happen with a single fragment and no
additional manipulation by the caller of ApplyStrict.
2020-01-12 22:09:08 -08:00
Billy Keyes
6a055aa600
Add exact line test for TextFragment#ApplyStrict
...
This ensures the line number is used and application isn't based only on
matching context lines.
2020-01-12 22:08:15 -08:00
Billy Keyes
7bd4e0bb0e
Fix EOF handling in TextFragment#ApplyStrict
...
io.EOF was not properly accounted for when dealing with patches that are
missing trailing newline characters.
2020-01-09 22:05:24 -08:00
Billy Keyes
02f7ff4f79
Add positive tests for TextFragment#ApplyStrict
...
These cover all of the cases (I think) where application should succeed.
2020-01-08 23:04:44 -08:00