diff options
| author | Russell Belfer <rb@github.com> | 2013-05-23 15:48:06 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-05-23 15:48:06 -0700 |
| commit | 49f70f2c370e649c3a0970b6aadd6f5cdf4f2701 (patch) | |
| tree | cb27af45b92916703ac2a3b5ce42ff371a6671e2 /src | |
| parent | f38cea97c3793dd6841fadbd1b9d26d25445375b (diff) | |
| download | libgit2-49f70f2c370e649c3a0970b6aadd6f5cdf4f2701.tar.gz | |
Fill out diff rename test coverage
This extends the rename tests to make sure that every rename
scenario in the inner loop of git_diff_find_similar is actually
exercised. Also, fixes an incorrect assert that was in one of
the clauses that was not previously being exercised.
Diffstat (limited to 'src')
| -rw-r--r-- | src/diff_tform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff_tform.c b/src/diff_tform.c index 0f4ecc7b5..bc3acae1d 100644 --- a/src/diff_tform.c +++ b/src/diff_tform.c @@ -776,7 +776,7 @@ int git_diff_find_similar( num_rewrites++; } else { - assert(delta_is_split(from)); + assert(delta_is_split(to)); if (similarity < (int)opts.rename_from_rewrite_threshold) continue; |
