aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/git-sugapply.rs
diff options
context:
space:
mode:
authorTeddy Wing2020-07-27 23:28:48 +0200
committerTeddy Wing2020-07-27 23:45:03 +0200
commit1283d0511bac89957163097d1a68bb9753208f09 (patch)
tree002dd2a11328c48511b85595e3a84a9f487dedbe /src/bin/git-sugapply.rs
parent8c6a6c99ec88780ce1e1aa2bf235be8fb4777bb7 (diff)
downloadgit-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