-
Notifications
You must be signed in to change notification settings - Fork 282
Diff #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diff #103
Conversation
Turns out a GTRepository would be a useful thing to have. WHO KNEW?!
Way better, as we don't have to do a foreach to get at it and we can be in control of it's lifecycle.
|
🎱 (note that there are 3 remaining tasks before this is mergeable btw) See also #111, I figure I will address all the various style problems with the old-skool unit tests when doing that. |
Lacking documentation is due to vague-ass stuff in diff.h. Waiting on some libgit2 folks to clarify a few things.
Also update our documentation to reflect the clarifications in libgit2.
This clone stuff is a bit lulzy.
|
OK @jspahrsummers I've written the tests I wanted to write. Go HAM :) |
ObjectiveGitTests/GTDiffSpec.m
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean to move the block initialization into the beforeEach block, instead of doing it out here.
Specta might invoke this after the outer block returns because I'm pretty sure the it blocks just register things to test (they don't actually occur immediately).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh I see, that makes sense.
ObjectiveGitTests/GTDiffTest.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![]()
|
🔥 Just a couple last notes. |
|
🇬🇧 |
|
|
Wraps the wonders of libgit2's diff as well as bumping it to a more recent version.
Also adds another, more involved, repository fixture and moves our fixtures into a zip file which is unzipped at test-time.
Remaining Functionality
Remaining Tests