mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
test: failing diff stat test.
This commit is contained in:
committed by
Edward Thomson
parent
48cd7e81b7
commit
25bcfb33dd
@@ -229,6 +229,26 @@ void test_diff_stats__rename_in_subdirectory(void)
|
||||
git_buf_dispose(&buf);
|
||||
}
|
||||
|
||||
void test_diff_stats__rename_in_subdirectory_aligns(void)
|
||||
{
|
||||
git_buf buf = GIT_BUF_INIT;
|
||||
const char *stat =
|
||||
" dir/{renamed.txt => rerenamed.txt} | 0\n"
|
||||
" file3.txt | 2 +-\n"
|
||||
" 2 files changed, 1 insertion(+), 1 deletion(-)\n";
|
||||
|
||||
diff_stats_from_commit_oid(
|
||||
&_stats, "7f4c6d9d6ba363e3352f7c21807ca3a7835072b2", true);
|
||||
|
||||
cl_assert_equal_sz(2, git_diff_stats_files_changed(_stats));
|
||||
cl_assert_equal_sz(1, git_diff_stats_insertions(_stats));
|
||||
cl_assert_equal_sz(1, git_diff_stats_deletions(_stats));
|
||||
|
||||
cl_git_pass(git_diff_stats_to_buf(&buf, _stats, GIT_DIFF_STATS_FULL, 0));
|
||||
cl_assert_equal_s(stat, buf.ptr);
|
||||
git_buf_dispose(&buf);
|
||||
}
|
||||
|
||||
void test_diff_stats__rename_no_find(void)
|
||||
{
|
||||
git_buf buf = GIT_BUF_INIT;
|
||||
|
||||
BIN
tests/resources/diff_format_email/.gitted/index
vendored
BIN
tests/resources/diff_format_email/.gitted/index
vendored
Binary file not shown.
1
tests/resources/diff_format_email/.gitted/objects/7f/4c6d9d6ba363e3352f7c21807ca3a7835072b2
vendored
Normal file
1
tests/resources/diff_format_email/.gitted/objects/7f/4c6d9d6ba363e3352f7c21807ca3a7835072b2
vendored
Normal file
@@ -0,0 +1 @@
|
||||
xťĎKj1EŃŚµŠšL©¤’ZŚÁ[ČJǢÝR<C39D>ĺ@vźŽ—ŕá<¸/őm«<13>őŰĄŔĺ‚Ƈ ѡ¶Ć±-ä0Ť6HĚšB<C5A1>$¬ľe”6ó.rÓ’8™…™Řz<C598>hYâ%‹ă•<ćµř”ŰŻŔą·¶ăcţë´ÖźşĘşJ9‚öÖ<C3B6>!‹ŢµFTéY8Ë+[µ7ʶżŞ·µÁýs -CşJű*0zźőI˙NŰ
|
||||
BIN
tests/resources/diff_format_email/.gitted/objects/7f/9b9a5984d19db4a566151374762e2628ec26b3
vendored
Normal file
BIN
tests/resources/diff_format_email/.gitted/objects/7f/9b9a5984d19db4a566151374762e2628ec26b3
vendored
Normal file
Binary file not shown.
BIN
tests/resources/diff_format_email/.gitted/objects/8f/6fa527fd62979afab1d2346828c7e801daac32
vendored
Normal file
BIN
tests/resources/diff_format_email/.gitted/objects/8f/6fa527fd62979afab1d2346828c7e801daac32
vendored
Normal file
Binary file not shown.
BIN
tests/resources/diff_format_email/.gitted/objects/eb/d0b64ca4dd3e5dbcd9d1a12a1f2b84f893a22d
vendored
Normal file
BIN
tests/resources/diff_format_email/.gitted/objects/eb/d0b64ca4dd3e5dbcd9d1a12a1f2b84f893a22d
vendored
Normal file
Binary file not shown.
BIN
tests/resources/diff_format_email/.gitted/objects/ff/03799ab60143654e260d91049a99551299b2a5
vendored
Normal file
BIN
tests/resources/diff_format_email/.gitted/objects/ff/03799ab60143654e260d91049a99551299b2a5
vendored
Normal file
Binary file not shown.
@@ -1 +1 @@
|
||||
0db2a262bc8c5c3cba55254730045a8258da7a37
|
||||
7f4c6d9d6ba363e3352f7c21807ca3a7835072b2
|
||||
|
||||
2
tests/resources/diff_format_email/file3.txt
vendored
2
tests/resources/diff_format_email/file3.txt
vendored
@@ -4,4 +4,4 @@ file3
|
||||
file3
|
||||
file3
|
||||
file3
|
||||
file3
|
||||
file3?
|
||||
|
||||
Reference in New Issue
Block a user