Blame tests/patch/patch_common.h

Packit Service 20376f
/* The original file contents */
Packit Service 20376f
Packit Service 20376f
#define FILE_ORIGINAL \
Packit Service 20376f
	"hey!\n" \
Packit Service 20376f
	"this is some context!\n" \
Packit Service 20376f
	"around some lines\n" \
Packit Service 20376f
	"that will change\n" \
Packit Service 20376f
	"yes it is!\n" \
Packit Service 20376f
	"(this line is changed)\n" \
Packit Service 20376f
	"and this\n" \
Packit Service 20376f
	"is additional context\n" \
Packit Service 20376f
	"below it!\n"
Packit Service 20376f
Packit Service 20376f
/* A change in the middle of the file (and the resultant patch) */
Packit Service 20376f
Packit Service 20376f
#define FILE_CHANGE_MIDDLE \
Packit Service 20376f
	"hey!\n" \
Packit Service 20376f
	"this is some context!\n" \
Packit Service 20376f
	"around some lines\n" \
Packit Service 20376f
	"that will change\n" \
Packit Service 20376f
	"yes it is!\n" \
Packit Service 20376f
	"(THIS line is changed!)\n" \
Packit Service 20376f
	"and this\n" \
Packit Service 20376f
	"is additional context\n" \
Packit Service 20376f
	"below it!\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_ORIGINAL_TO_CHANGE_MIDDLE \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..cd8fd12 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -3,7 +3,7 @@ this is some context!\n" \
Packit Service 20376f
	" around some lines\n" \
Packit Service 20376f
	" that will change\n" \
Packit Service 20376f
	" yes it is!\n" \
Packit Service 20376f
	"-(this line is changed)\n" \
Packit Service 20376f
	"+(THIS line is changed!)\n" \
Packit Service 20376f
	" and this\n" \
Packit Service 20376f
	" is additional context\n" \
Packit Service 20376f
	" below it!\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_ORIGINAL_TO_CHANGE_MIDDLE_NOCONTEXT \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..cd8fd12 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -6 +6 @@ yes it is!\n" \
Packit Service 20376f
	"-(this line is changed)\n" \
Packit Service 20376f
	"+(THIS line is changed!)\n"
Packit Service 20376f
Packit Service 20376f
/* A change of the first line (and the resultant patch) */
Packit Service 20376f
Packit Service 20376f
#define FILE_CHANGE_FIRSTLINE \
Packit Service 20376f
	"hey, change in head!\n" \
Packit Service 20376f
	"this is some context!\n" \
Packit Service 20376f
	"around some lines\n" \
Packit Service 20376f
	"that will change\n" \
Packit Service 20376f
	"yes it is!\n" \
Packit Service 20376f
	"(this line is changed)\n" \
Packit Service 20376f
	"and this\n" \
Packit Service 20376f
	"is additional context\n" \
Packit Service 20376f
	"below it!\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_ORIGINAL_TO_CHANGE_FIRSTLINE \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..c81df1d 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -1,4 +1,4 @@\n" \
Packit Service 20376f
	"-hey!\n" \
Packit Service 20376f
	"+hey, change in head!\n" \
Packit Service 20376f
	" this is some context!\n" \
Packit Service 20376f
	" around some lines\n" \
Packit Service 20376f
	" that will change\n"
Packit Service 20376f
Packit Service 20376f
/* A change of the last line (and the resultant patch) */
Packit Service 20376f
Packit Service 20376f
#define FILE_CHANGE_LASTLINE \
Packit Service 20376f
	"hey!\n" \
Packit Service 20376f
	"this is some context!\n" \
Packit Service 20376f
	"around some lines\n" \
Packit Service 20376f
	"that will change\n" \
Packit Service 20376f
	"yes it is!\n" \
Packit Service 20376f
	"(this line is changed)\n" \
Packit Service 20376f
	"and this\n" \
Packit Service 20376f
	"is additional context\n" \
Packit Service 20376f
	"change to the last line.\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_ORIGINAL_TO_CHANGE_LASTLINE \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..f70db1c 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -6,4 +6,4 @@ yes it is!\n" \
Packit Service 20376f
	" (this line is changed)\n" \
Packit Service 20376f
	" and this\n" \
Packit Service 20376f
	" is additional context\n" \
Packit Service 20376f
	"-below it!\n" \
Packit Service 20376f
	"+change to the last line.\n"
Packit Service 20376f
Packit Service 20376f
/* A change of the middle where we remove many lines */
Packit Service 20376f
Packit Service 20376f
#define FILE_CHANGE_MIDDLE_SHRINK \
Packit Service 20376f
	"hey!\n" \
Packit Service 20376f
	"i've changed a lot, but left the line\n" \
Packit Service 20376f
	"below it!\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_ORIGINAL_TO_CHANGE_MIDDLE_SHRINK \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..629cd35 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -1,9 +1,3 @@\n" \
Packit Service 20376f
	" hey!\n" \
Packit Service 20376f
	"-this is some context!\n" \
Packit Service 20376f
	"-around some lines\n" \
Packit Service 20376f
	"-that will change\n" \
Packit Service 20376f
	"-yes it is!\n" \
Packit Service 20376f
	"-(this line is changed)\n" \
Packit Service 20376f
	"-and this\n" \
Packit Service 20376f
	"-is additional context\n" \
Packit Service 20376f
	"+i've changed a lot, but left the line\n" \
Packit Service 20376f
	" below it!\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_ORIGINAL_TO_MIDDLE_SHRINK_NOCONTEXT \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..629cd35 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -2,7 +2 @@ hey!\n" \
Packit Service 20376f
	"-this is some context!\n" \
Packit Service 20376f
	"-around some lines\n" \
Packit Service 20376f
	"-that will change\n" \
Packit Service 20376f
	"-yes it is!\n" \
Packit Service 20376f
	"-(this line is changed)\n" \
Packit Service 20376f
	"-and this\n" \
Packit Service 20376f
	"-is additional context\n" \
Packit Service 20376f
	"+i've changed a lot, but left the line\n"
Packit Service 20376f
Packit Service 20376f
/* A change to the middle where we grow many lines */
Packit Service 20376f
Packit Service 20376f
#define FILE_CHANGE_MIDDLE_GROW \
Packit Service 20376f
	"hey!\n" \
Packit Service 20376f
	"this is some context!\n" \
Packit Service 20376f
	"around some lines\n" \
Packit Service 20376f
	"that will change\n" \
Packit Service 20376f
	"yes it is!\n" \
Packit Service 20376f
	"this line is changed\n" \
Packit Service 20376f
	"and this line is added\n" \
Packit Service 20376f
	"so is this\n" \
Packit Service 20376f
	"(this too)\n" \
Packit Service 20376f
	"whee...\n" \
Packit Service 20376f
	"and this\n" \
Packit Service 20376f
	"is additional context\n" \
Packit Service 20376f
	"below it!\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_ORIGINAL_TO_CHANGE_MIDDLE_GROW \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..207ebca 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -3,7 +3,11 @@ this is some context!\n" \
Packit Service 20376f
	" around some lines\n" \
Packit Service 20376f
	" that will change\n" \
Packit Service 20376f
	" yes it is!\n" \
Packit Service 20376f
	"-(this line is changed)\n" \
Packit Service 20376f
	"+this line is changed\n" \
Packit Service 20376f
	"+and this line is added\n" \
Packit Service 20376f
	"+so is this\n" \
Packit Service 20376f
	"+(this too)\n" \
Packit Service 20376f
	"+whee...\n" \
Packit Service 20376f
	" and this\n" \
Packit Service 20376f
	" is additional context\n" \
Packit Service 20376f
	" below it!\n"
Packit Service 20376f
Packit Service 20376f
Packit Service 20376f
#define PATCH_ORIGINAL_TO_MIDDLE_GROW_NOCONTEXT \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..207ebca 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -6 +6,5 @@ yes it is!\n" \
Packit Service 20376f
	"-(this line is changed)\n" \
Packit Service 20376f
	"+this line is changed\n" \
Packit Service 20376f
	"+and this line is added\n" \
Packit Service 20376f
	"+so is this\n" \
Packit Service 20376f
	"+(this too)\n" \
Packit Service 20376f
	"+whee...\n"
Packit Service 20376f
Packit Service 20376f
/* An insertion at the beginning of the file (and the resultant patch) */
Packit Service 20376f
Packit Service 20376f
#define FILE_PREPEND \
Packit Service 20376f
	"insert at front\n" \
Packit Service 20376f
	"hey!\n" \
Packit Service 20376f
	"this is some context!\n" \
Packit Service 20376f
	"around some lines\n" \
Packit Service 20376f
	"that will change\n" \
Packit Service 20376f
	"yes it is!\n" \
Packit Service 20376f
	"(this line is changed)\n" \
Packit Service 20376f
	"and this\n" \
Packit Service 20376f
	"is additional context\n" \
Packit Service 20376f
	"below it!\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_ORIGINAL_TO_PREPEND \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..0f39b9a 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -1,3 +1,4 @@\n" \
Packit Service 20376f
	"+insert at front\n" \
Packit Service 20376f
	" hey!\n" \
Packit Service 20376f
	" this is some context!\n" \
Packit Service 20376f
	" around some lines\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_ORIGINAL_TO_PREPEND_NOCONTEXT \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..0f39b9a 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -0,0 +1 @@\n" \
Packit Service 20376f
	"+insert at front\n"
Packit Service 20376f
Packit Service 20376f
/* An insertion at the end of the file (and the resultant patch) */
Packit Service 20376f
Packit Service 20376f
#define FILE_APPEND \
Packit Service 20376f
	"hey!\n" \
Packit Service 20376f
	"this is some context!\n" \
Packit Service 20376f
	"around some lines\n" \
Packit Service 20376f
	"that will change\n" \
Packit Service 20376f
	"yes it is!\n" \
Packit Service 20376f
	"(this line is changed)\n" \
Packit Service 20376f
	"and this\n" \
Packit Service 20376f
	"is additional context\n" \
Packit Service 20376f
	"below it!\n" \
Packit Service 20376f
	"insert at end\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_ORIGINAL_TO_APPEND \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..72788bb 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -7,3 +7,4 @@ yes it is!\n" \
Packit Service 20376f
	" and this\n" \
Packit Service 20376f
	" is additional context\n" \
Packit Service 20376f
	" below it!\n" \
Packit Service 20376f
	"+insert at end\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_ORIGINAL_TO_APPEND_NOCONTEXT \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..72788bb 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -9,0 +10 @@ below it!\n" \
Packit Service 20376f
	"+insert at end\n"
Packit Service 20376f
Packit Service 20376f
/* An insertion at the beginning and end of file (and the resultant patch) */
Packit Service 20376f
Packit Service 20376f
#define FILE_PREPEND_AND_APPEND \
Packit Service 20376f
	"first and\n" \
Packit Service 20376f
	"this is some context!\n" \
Packit Service 20376f
	"around some lines\n" \
Packit Service 20376f
	"that will change\n" \
Packit Service 20376f
	"yes it is!\n" \
Packit Service 20376f
	"(this line is changed)\n" \
Packit Service 20376f
	"and this\n" \
Packit Service 20376f
	"is additional context\n" \
Packit Service 20376f
	"last lines\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_ORIGINAL_TO_PREPEND_AND_APPEND \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..f282430 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -1,4 +1,4 @@\n" \
Packit Service 20376f
	"-hey!\n" \
Packit Service 20376f
	"+first and\n" \
Packit Service 20376f
	" this is some context!\n" \
Packit Service 20376f
	" around some lines\n" \
Packit Service 20376f
	" that will change\n" \
Packit Service 20376f
	"@@ -6,4 +6,4 @@ yes it is!\n" \
Packit Service 20376f
	" (this line is changed)\n" \
Packit Service 20376f
	" and this\n" \
Packit Service 20376f
	" is additional context\n" \
Packit Service 20376f
	"-below it!\n" \
Packit Service 20376f
	"+last lines\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_ORIGINAL_TO_EMPTY_FILE \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..e69de29 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -1,9 +0,0 @@\n" \
Packit Service 20376f
	"-hey!\n" \
Packit Service 20376f
	"-this is some context!\n" \
Packit Service 20376f
	"-around some lines\n" \
Packit Service 20376f
	"-that will change\n" \
Packit Service 20376f
	"-yes it is!\n" \
Packit Service 20376f
	"-(this line is changed)\n" \
Packit Service 20376f
	"-and this\n" \
Packit Service 20376f
	"-is additional context\n" \
Packit Service 20376f
	"-below it!\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_EMPTY_FILE_TO_ORIGINAL \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index e69de29..9432026 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -0,0 +1,9 @@\n" \
Packit Service 20376f
	"+hey!\n" \
Packit Service 20376f
	"+this is some context!\n" \
Packit Service 20376f
	"+around some lines\n" \
Packit Service 20376f
	"+that will change\n" \
Packit Service 20376f
	"+yes it is!\n" \
Packit Service 20376f
	"+(this line is changed)\n" \
Packit Service 20376f
	"+and this\n" \
Packit Service 20376f
	"+is additional context\n" \
Packit Service 20376f
	"+below it!\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_ADD_ORIGINAL \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"new file mode 100644\n" \
Packit Service 20376f
	"index 0000000..9432026\n" \
Packit Service 20376f
	"--- /dev/null\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -0,0 +1,9 @@\n" \
Packit Service 20376f
	"+hey!\n" \
Packit Service 20376f
	"+this is some context!\n" \
Packit Service 20376f
	"+around some lines\n" \
Packit Service 20376f
	"+that will change\n" \
Packit Service 20376f
	"+yes it is!\n" \
Packit Service 20376f
	"+(this line is changed)\n" \
Packit Service 20376f
	"+and this\n" \
Packit Service 20376f
	"+is additional context\n" \
Packit Service 20376f
	"+below it!\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_DELETE_ORIGINAL \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"deleted file mode 100644\n" \
Packit Service 20376f
	"index 9432026..0000000\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ /dev/null\n" \
Packit Service 20376f
	"@@ -1,9 +0,0 @@\n" \
Packit Service 20376f
	"-hey!\n" \
Packit Service 20376f
	"-this is some context!\n" \
Packit Service 20376f
	"-around some lines\n" \
Packit Service 20376f
	"-that will change\n" \
Packit Service 20376f
	"-yes it is!\n" \
Packit Service 20376f
	"-(this line is changed)\n" \
Packit Service 20376f
	"-and this\n" \
Packit Service 20376f
	"-is additional context\n" \
Packit Service 20376f
	"-below it!\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_RENAME_EXACT \
Packit Service 20376f
	"diff --git a/file.txt b/newfile.txt\n" \
Packit Service 20376f
	"similarity index 100%\n" \
Packit Service 20376f
	"rename from file.txt\n" \
Packit Service 20376f
	"rename to newfile.txt\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_RENAME_SIMILAR \
Packit Service 20376f
	"diff --git a/file.txt b/newfile.txt\n" \
Packit Service 20376f
	"similarity index 77%\n" \
Packit Service 20376f
	"rename from file.txt\n" \
Packit Service 20376f
	"rename to newfile.txt\n" \
Packit Service 20376f
	"index 9432026..cd8fd12 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/newfile.txt\n" \
Packit Service 20376f
	"@@ -3,7 +3,7 @@ this is some context!\n" \
Packit Service 20376f
	" around some lines\n" \
Packit Service 20376f
	" that will change\n" \
Packit Service 20376f
	" yes it is!\n" \
Packit Service 20376f
	"-(this line is changed)\n" \
Packit Service 20376f
	"+(THIS line is changed!)\n" \
Packit Service 20376f
	" and this\n" \
Packit Service 20376f
	" is additional context\n" \
Packit Service 20376f
	" below it!\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_RENAME_EXACT_QUOTEDNAME \
Packit Service 20376f
	"diff --git a/file.txt \"b/foo\\\"bar.txt\"\n" \
Packit Service 20376f
	"similarity index 100%\n" \
Packit Service 20376f
	"rename from file.txt\n" \
Packit Service 20376f
	"rename to \"foo\\\"bar.txt\"\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_RENAME_SIMILAR_QUOTEDNAME \
Packit Service 20376f
	"diff --git a/file.txt \"b/foo\\\"bar.txt\"\n" \
Packit Service 20376f
	"similarity index 77%\n" \
Packit Service 20376f
	"rename from file.txt\n" \
Packit Service 20376f
	"rename to \"foo\\\"bar.txt\"\n" \
Packit Service 20376f
	"index 9432026..cd8fd12 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ \"b/foo\\\"bar.txt\"\n" \
Packit Service 20376f
	"@@ -3,7 +3,7 @@ this is some context!\n" \
Packit Service 20376f
	" around some lines\n" \
Packit Service 20376f
	" that will change\n" \
Packit Service 20376f
	" yes it is!\n" \
Packit Service 20376f
	"-(this line is changed)\n" \
Packit Service 20376f
	"+(THIS line is changed!)\n" \
Packit Service 20376f
	" and this\n" \
Packit Service 20376f
	" is additional context\n" \
Packit Service 20376f
	" below it!\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_MODECHANGE_UNCHANGED \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"old mode 100644\n" \
Packit Service 20376f
	"new mode 100755\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_MODECHANGE_MODIFIED \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"old mode 100644\n" \
Packit Service 20376f
	"new mode 100755\n" \
Packit Service 20376f
	"index 9432026..cd8fd12\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -3,7 +3,7 @@ this is some context!\n" \
Packit Service 20376f
	" around some lines\n" \
Packit Service 20376f
	" that will change\n" \
Packit Service 20376f
	" yes it is!\n" \
Packit Service 20376f
	"-(this line is changed)\n" \
Packit Service 20376f
	"+(THIS line is changed!)\n" \
Packit Service 20376f
	" and this\n" \
Packit Service 20376f
	" is additional context\n" \
Packit Service 20376f
	" below it!\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_NOISY \
Packit Service 20376f
	"This is some\nleading noise\n@@ - that\nlooks like a hunk header\n" \
Packit Service 20376f
	"but actually isn't and should parse ok\n" \
Packit Service 20376f
	PATCH_ORIGINAL_TO_CHANGE_MIDDLE \
Packit Service 20376f
	"plus some trailing garbage for good measure\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_NOISY_NOCONTEXT \
Packit Service 20376f
	"This is some\nleading noise\n@@ - that\nlooks like a hunk header\n" \
Packit Service 20376f
	"but actually isn't and should parse ok\n" \
Packit Service 20376f
	PATCH_ORIGINAL_TO_CHANGE_MIDDLE_NOCONTEXT \
Packit Service 20376f
	"plus some trailing garbage for good measure\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_TRUNCATED_1 \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..cd8fd12 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -3,7 +3,7 @@ this is some context!\n" \
Packit Service 20376f
	" around some lines\n" \
Packit Service 20376f
	" that will change\n" \
Packit Service 20376f
	" yes it is!\n" \
Packit Service 20376f
	"-(this line is changed)\n" \
Packit Service 20376f
	"+(THIS line is changed!)\n" \
Packit Service 20376f
	" and this\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_TRUNCATED_2 \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..cd8fd12 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -3,7 +3,7 @@ this is some context!\n" \
Packit Service 20376f
	" around some lines\n" \
Packit Service 20376f
	"-(this line is changed)\n" \
Packit Service 20376f
	"+(THIS line is changed!)\n" \
Packit Service 20376f
	" and this\n" \
Packit Service 20376f
	" is additional context\n" \
Packit Service 20376f
	" below it!\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_TRUNCATED_3 \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..cd8fd12 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -3,7 +3,7 @@ this is some context!\n" \
Packit Service 20376f
	" around some lines\n" \
Packit Service 20376f
	" that will change\n" \
Packit Service 20376f
	" yes it is!\n" \
Packit Service 20376f
	"+(THIS line is changed!)\n" \
Packit Service 20376f
	" and this\n" \
Packit Service 20376f
	" is additional context\n" \
Packit Service 20376f
	" below it!\n"
Packit Service 20376f
Packit Service 20376f
#define FILE_EMPTY_CONTEXT_ORIGINAL \
Packit Service 20376f
	"this\nhas\nan\n\nempty\ncontext\nline\n"
Packit Service 20376f
Packit Service 20376f
#define FILE_EMPTY_CONTEXT_MODIFIED \
Packit Service 20376f
	"this\nhas\nan\n\nempty...\ncontext\nline\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_EMPTY_CONTEXT \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 398d2df..bb15234 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -2,6 +2,6 @@ this\n" \
Packit Service 20376f
	" has\n" \
Packit Service 20376f
	" an\n" \
Packit Service 20376f
	"\n" \
Packit Service 20376f
	"-empty\n" \
Packit Service 20376f
	"+empty...\n" \
Packit Service 20376f
	" context\n" \
Packit Service 20376f
	" line\n"
Packit Service 20376f
Packit Service 20376f
#define FILE_APPEND_NO_NL \
Packit Service 20376f
	"hey!\n" \
Packit Service 20376f
	"this is some context!\n" \
Packit Service 20376f
	"around some lines\n" \
Packit Service 20376f
	"that will change\n" \
Packit Service 20376f
	"yes it is!\n" \
Packit Service 20376f
	"(this line is changed)\n" \
Packit Service 20376f
	"and this\n" \
Packit Service 20376f
	"is additional context\n" \
Packit Service 20376f
	"below it!\n" \
Packit Service 20376f
	"added line with no nl"
Packit Service 20376f
Packit Service 20376f
#define PATCH_APPEND_NO_NL \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..83759c0 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -7,3 +7,4 @@ yes it is!\n" \
Packit Service 20376f
	" and this\n" \
Packit Service 20376f
	" is additional context\n" \
Packit Service 20376f
	" below it!\n" \
Packit Service 20376f
	"+added line with no nl\n" \
Packit Service 20376f
	"\\ No newline at end of file\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_CORRUPT_GIT_HEADER \
Packit Service 20376f
	"diff --git a/file.txt\n" \
Packit Service 20376f
	"index 9432026..0f39b9a 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -0,0 +1 @@\n" \
Packit Service 20376f
	"+insert at front\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_CORRUPT_MISSING_NEW_FILE \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..cd8fd12 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"@@ -6 +6 @@ yes it is!\n" \
Packit Service 20376f
	"-(this line is changed)\n" \
Packit Service 20376f
	"+(THIS line is changed!)\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_CORRUPT_MISSING_OLD_FILE \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..cd8fd12 100644\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -6 +6 @@ yes it is!\n" \
Packit Service 20376f
	"-(this line is changed)\n" \
Packit Service 20376f
	"+(THIS line is changed!)\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_CORRUPT_NO_CHANGES \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..cd8fd12 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"@@ -0,0 +0,0 @@ yes it is!\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_CORRUPT_MISSING_HUNK_HEADER \
Packit Service 20376f
	"diff --git a/file.txt b/file.txt\n" \
Packit Service 20376f
	"index 9432026..cd8fd12 100644\n" \
Packit Service 20376f
	"--- a/file.txt\n" \
Packit Service 20376f
	"+++ b/file.txt\n" \
Packit Service 20376f
	"-(this line is changed)\n" \
Packit Service 20376f
	"+(THIS line is changed!)\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_NOT_A_PATCH \
Packit Service 20376f
	"+++this is not\n" \
Packit Service 20376f
	"--actually even\n" \
Packit Service 20376f
	" a legitimate \n" \
Packit Service 20376f
	"+patch file\n" \
Packit Service 20376f
	"-it's something else\n" \
Packit Service 20376f
	" entirely!"
Packit Service 20376f
Packit Service 20376f
/* binary contents */
Packit Service 20376f
Packit Service 20376f
#define FILE_BINARY_LITERAL_ORIGINAL "\x00\x00\x0a"
Packit Service 20376f
#define FILE_BINARY_LITERAL_ORIGINAL_LEN 3
Packit Service 20376f
Packit Service 20376f
#define FILE_BINARY_LITERAL_MODIFIED "\x00\x00\x01\x02\x0a"
Packit Service 20376f
#define FILE_BINARY_LITERAL_MODIFIED_LEN 5
Packit Service 20376f
Packit Service 20376f
#define PATCH_BINARY_LITERAL \
Packit Service 20376f
	"diff --git a/binary.bin b/binary.bin\n" \
Packit Service 20376f
	"index bd474b2519cc15eab801ff851cc7d50f0dee49a1..9ac35ff15cd8864aeafd889e4826a3150f0b06c4 100644\n" \
Packit Service 20376f
	"GIT binary patch\n" \
Packit Service 20376f
	"literal 5\n" \
Packit Service 20376f
	"Mc${NkU}WL~000&M4gdfE\n" \
Packit Service 20376f
	"\n" \
Packit Service 20376f
	"literal 3\n" \
Packit Service 20376f
	"Kc${Nk-~s>u4FC%O\n\n"
Packit Service 20376f
Packit Service 20376f
#define FILE_BINARY_DELTA_ORIGINAL \
Packit Service 20376f
	"\x00\x00\x01\x02\x00\x00\x01\x02\x00\x00\x01\x02\x0a\x54\x68\x69" \
Packit Service 20376f
	"\x73\x20\x69\x73\x20\x61\x20\x62\x69\x6e\x61\x72\x79\x20\x66\x69" \
Packit Service 20376f
	"\x6c\x65\x2c\x20\x62\x79\x20\x76\x69\x72\x74\x75\x65\x20\x6f\x66" \
Packit Service 20376f
	"\x20\x68\x61\x76\x69\x6e\x67\x20\x73\x6f\x6d\x65\x20\x6e\x75\x6c" \
Packit Service 20376f
	"\x6c\x73\x2e\x0a\x00\x00\x01\x02\x00\x00\x01\x02\x00\x00\x01\x02" \
Packit Service 20376f
	"\x0a\x57\x65\x27\x72\x65\x20\x67\x6f\x69\x6e\x67\x20\x74\x6f\x20" \
Packit Service 20376f
	"\x63\x68\x61\x6e\x67\x65\x20\x70\x6f\x72\x74\x69\x6f\x6e\x73\x20" \
Packit Service 20376f
	"\x6f\x66\x20\x69\x74\x2e\x0a\x00\x00\x01\x02\x00\x00\x01\x02\x00" \
Packit Service 20376f
	"\x00\x01\x02\x0a\x53\x6f\x20\x74\x68\x61\x74\x20\x77\x65\x20\x67" \
Packit Service 20376f
	"\x69\x74\x20\x61\x20\x62\x69\x6e\x61\x72\x79\x20\x64\x65\x6c\x74" \
Packit Service 20376f
	"\x61\x20\x69\x6e\x73\x74\x65\x61\x64\x20\x6f\x66\x20\x74\x68\x65" \
Packit Service 20376f
	"\x20\x64\x65\x66\x6c\x61\x74\x65\x64\x20\x63\x6f\x6e\x74\x65\x6e" \
Packit Service 20376f
	"\x74\x73\x2e\x0a\x00\x00\x01\x02\x00\x00\x01\x02\x00\x00\x01\x02" \
Packit Service 20376f
	"\x0a"
Packit Service 20376f
#define FILE_BINARY_DELTA_ORIGINAL_LEN 209
Packit Service 20376f
Packit Service 20376f
#define FILE_BINARY_DELTA_MODIFIED \
Packit Service 20376f
	"\x00\x00\x01\x02\x00\x00\x01\x02\x00\x00\x01\x02\x0a\x5a\x5a\x5a" \
Packit Service 20376f
	"\x5a\x20\x69\x73\x20\x61\x20\x62\x69\x6e\x61\x72\x79\x20\x66\x69" \
Packit Service 20376f
	"\x6c\x65\x2c\x20\x62\x79\x20\x76\x69\x72\x74\x75\x65\x20\x6f\x66" \
Packit Service 20376f
	"\x20\x68\x61\x76\x69\x6e\x67\x20\x73\x6f\x6d\x65\x20\x6e\x75\x6c" \
Packit Service 20376f
	"\x6c\x73\x2e\x0a\x00\x00\x01\x02\x00\x00\x01\x02\x00\x00\x01\x02" \
Packit Service 20376f
	"\x0a\x57\x65\x27\x72\x65\x20\x67\x6f\x69\x6e\x67\x20\x74\x6f\x20" \
Packit Service 20376f
	"\x63\x68\x61\x6e\x67\x65\x20\x70\x6f\x72\x74\x69\x6f\x6e\x73\x20" \
Packit Service 20376f
	"\x6f\x66\x20\x49\x54\x2e\x0a\x00\x00\x01\x02\x00\x00\x01\x02\x00" \
Packit Service 20376f
	"\x00\x01\x02\x0a\x53\x4f\x20\x74\x68\x61\x74\x20\x77\x65\x20\x67" \
Packit Service 20376f
	"\x69\x74\x20\x61\x20\x62\x69\x6e\x61\x72\x79\x20\x64\x65\x6c\x74" \
Packit Service 20376f
	"\x61\x20\x69\x6e\x73\x74\x65\x61\x64\x20\x6f\x66\x20\x74\x68\x65" \
Packit Service 20376f
	"\x20\x64\x65\x66\x6c\x61\x74\x65\x64\x20\x63\x6f\x6e\x74\x65\x6e" \
Packit Service 20376f
	"\x74\x73\x2e\x0a\x00\x00\x01\x02\x00\x00\x01\x02\x00\x00\x01\x02" \
Packit Service 20376f
	"\x0a"
Packit Service 20376f
#define FILE_BINARY_DELTA_MODIFIED_LEN 209
Packit Service 20376f
Packit Service 20376f
#define PATCH_BINARY_DELTA \
Packit Service 20376f
	"diff --git a/binary.bin b/binary.bin\n" \
Packit Service 20376f
	"index 27184d9883b12c4c9c54b4a31137603586169f51..7c94f9e60bf366033d98e0d551ae37d30faef74a 100644\n" \
Packit Service 20376f
	"GIT binary patch\n" \
Packit Service 20376f
	"delta 48\n" \
Packit Service 20376f
	"kc$~Y)c#%<%fq{_;hPk4EV4`4>uxE%K7m7r%|HL+L0In7XGynhq\n" \
Packit Service 20376f
	"\n" \
Packit Service 20376f
	"delta 48\n" \
Packit Service 20376f
	"mc$~Y)c#%<%fq{_;hPgsAGK(h)CJASj=y9P)1m{m|^9BI99|yz$\n\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_BINARY_ADD \
Packit Service 20376f
	"diff --git a/binary.bin b/binary.bin\n" \
Packit Service 20376f
	"new file mode 100644\n" \
Packit Service 20376f
	"index 0000000000000000000000000000000000000000..7c94f9e60bf366033d98e0d551ae37d30faef74a\n" \
Packit Service 20376f
	"GIT binary patch\n" \
Packit Service 20376f
	"literal 209\n" \
Packit Service 20376f
	"zc${60u?oUK5JXSQe8qG&;(u6KC<u0&+$Ohh?#kUJlD{_rLCL^0!@QXgcKh&k^H>C_\n" \
Packit Service 20376f
	"zAhe=XX7rNzh<3&##YcwqNHmEKsP<&&m~%Zf;eX@Khr$?aExDmfqyyt+#l^I)3+LMg\n" \
Packit Service 20376f
	"kxnAIj9Pfn_|Gh`fP7tlm6j#y{FJYg_IifRlR^R@A08f862mk;8\n" \
Packit Service 20376f
	"\n" \
Packit Service 20376f
	"literal 0\n" \
Packit Service 20376f
	"Hc$@
Packit Service 20376f
Packit Service 20376f
#define PATCH_BINARY_DELETE \
Packit Service 20376f
	"diff --git a/binary.bin b/binary.bin\n" \
Packit Service 20376f
	"deleted file mode 100644\n" \
Packit Service 20376f
	"index 7c94f9e60bf366033d98e0d551ae37d30faef74a..0000000000000000000000000000000000000000\n" \
Packit Service 20376f
	"GIT binary patch\n" \
Packit Service 20376f
	"literal 0\n" \
Packit Service 20376f
	"Hc$@
Packit Service 20376f
	"\n" \
Packit Service 20376f
	"literal 209\n" \
Packit Service 20376f
	"zc${60u?oUK5JXSQe8qG&;(u6KC<u0&+$Ohh?#kUJlD{_rLCL^0!@QXgcKh&k^H>C_\n" \
Packit Service 20376f
	"zAhe=XX7rNzh<3&##YcwqNHmEKsP<&&m~%Zf;eX@Khr$?aExDmfqyyt+#l^I)3+LMg\n" \
Packit Service 20376f
	"kxnAIj9Pfn_|Gh`fP7tlm6j#y{FJYg_IifRlR^R@A08f862mk;8\n\n"
Packit Service 20376f
Packit Service 20376f
/* contains an old side that does not match the expected source */
Packit Service 20376f
#define PATCH_BINARY_NOT_REVERSIBLE \
Packit Service 20376f
	"diff --git a/binary.bin b/binary.bin\n" \
Packit Service 20376f
	"index 27184d9883b12c4c9c54b4a31137603586169f51..7c94f9e60bf366033d98e0d551ae37d30faef74a 100644\n" \
Packit Service 20376f
	"GIT binary patch\n" \
Packit Service 20376f
	"literal 5\n" \
Packit Service 20376f
	"Mc${NkU}WL~000&M4gdfE\n" \
Packit Service 20376f
	"\n" \
Packit Service 20376f
	"delta 48\n" \
Packit Service 20376f
	"mc$~Y)c#%<%fq{_;hPgsAGK(h)CJASj=y9P)1m{m|^9BI99|yz$\n\n"
Packit Service 20376f
Packit Service 20376f
#define PATCH_BINARY_NOT_PRINTED \
Packit Service 20376f
	"diff --git a/binary.bin b/binary.bin\n" \
Packit Service 20376f
	"index 27184d9..7c94f9e 100644\n" \
Packit Service 20376f
	"Binary files a/binary.bin and b/binary.bin differ\n"