diff options
author | Teddy Wing | 2020-07-27 23:28:48 +0200 |
---|---|---|
committer | Teddy Wing | 2020-07-27 23:45:03 +0200 |
commit | 1283d0511bac89957163097d1a68bb9753208f09 (patch) | |
tree | 002dd2a11328c48511b85595e3a84a9f487dedbe /src/bin/git-sugapply.rs | |
parent | 8c6a6c99ec88780ce1e1aa2bf235be8fb4777bb7 (diff) | |
download | git-suggestion-1283d0511bac89957163097d1a68bb9753208f09.tar.bz2 |
Test `Suggestion.diff()`
Add a test for diff generation. Split `diff()` into `diff_with_repo()`
to allow us to test with a new repo instead of defaulting to the current
one.
In the test, create a new Git repo using `git2`, add and commit a file,
and check that the diff generated by a Suggestion is correct.
Got the `IndexEntry` format from
https://docs.rs/git2/0.13.8/src/git2/index.rs.html#858-871.
Diffstat (limited to 'src/bin/git-sugapply.rs')
0 files changed, 0 insertions, 0 deletions