Repository navigation
Commit 1a9aa29
committed
test(compat): add GNU patch compatibility tests
Tests verify diffy produces results compatible with reference tools.
Here we have GNU patch. In the future we'll have `git apply`.
We don't run reference tool locally, as user may not have the tool.
To run it, set `env CI=1` and run the test.
Please see the module level doc for more.1 parent 5a33e37 commit 1a9aa29
53 files changed
Lines changed: 962 additions & 1 deletion
File tree
- tests/compat
- gnu_patch
- create_empty_file_gitdiff/in
- create_empty_file_unidiff
- in
- out
- create_file
- in
- out
- delete_file
- in
- out
- fail_context_mismatch/in
- fail_hunk_not_found/in
- fail_truncated_file/in
- junk_between_files
- in
- out
- junk_between_hunks
- in
- out
- missing_minus_header
- in
- out
- missing_plus_header
- in
- out
- nested_diff_signature
- in
- out
- no_hunk
- in
- out
- path_quoted_named_escape
- in
- out
- path_quoted_octal_escape
- in
- out
- preamble_git_headers
- in
- out
- reversed_header_order
- in
- out
- trailing_signature
- in
- out
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments