…m file headers
These unit tests cover initialization and other basic methods for the Repo, Object, Commit and Tree classes. Nu does not have a mock testing framework. I'm currently just testing against 2 git repos that live under the NuTests dir. Other potential options for testing include: + Use macruby with test/unit, mocha & grit This might be nice since it would be easy to test directly against grit as a reference framework. + Use Objective-C frameworks SenTestingKit & OCMock The main advantage here is that the tests are in ObjC, which makes it easier to drop into gdb, or run tests on the iphone. Note however, that it should also be possible to run Nu tests on the iphone...
…ied into framework bundle (xcode).
…te testing. I like the way that the [touch-code] projects are organized: All of the source code goes in a separate dir, which is separate from the .xcodeproj that references the code. This makes it really easy to build a framework for testing on OS X, or to simply copy the files to a new Xcode project (via drag-and-drop) for including in an iPhone project. [touch-code]: http://code.google.com/p/touchcode/
…te autoreleased instances of classes. At this point, I'm not sure if the ServerHandler class is meant to be a client, connecting to a remote repository, or a server to respond to remote requests (or both?). Finally changed 'initFrom' methods to 'initWith', since the object being referred to will be used to create the instance, and will be retained.
…y leaks. There are a few methods in here that are very difficult to understand. Without documentation on the protocol, it is hard to follow, so I'm not touching it yet... ;-) Ultimately, this class will also need to be broken into a couple different pieces. However, at this point, I'd rather focus on writing some tests for what is already here.
Minor changes to parseRaw function to eliminate memory leaks.
Cleaned up ivars/accessors and rewrote #parseRaw to remove deprecated stringWithCString:length: calls. Also replaced cryptic memstr()-searching for '\0' to use strlen. The new code, uses strlen to read the header, and stores the contents in an NSData ivar.
Removed ivars/accessors for author/committer since they were not being used. Store this info in dictionaries. Also fixed a few memory leaks.
…anagement, and some small bug fixes
… on the upload-pack stuff
…h) ref delta resolution still a bug crashing it with some bigger repos, but almost there
… and unpacking