libgit2/tests-clar
Russell Belfer da337c8064 Iterator improvements from diff implementation
This makes two changes to iterator behavior: first, advance
can optionally do the work of returning the new current value.
This is such a common pattern that it really cleans up usage.

Second, for workdir iterators, this removes automatically
iterating into directories.  That seemed like a good idea,
but when an entirely new directory hierarchy is introduced
into the workdir, there is no reason to iterate into it if
there are no corresponding entries in the tree/index that it
is being compared to.

This second change actually wasn't a lot of code because not
descending into directories was already the behavior for
ignored directories.  This just extends that to all directories.
2012-02-22 11:22:33 -08:00
..
attr Add unit tests for recent bug fixes 2012-02-01 12:30:35 -08:00
buf Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
commit commit: actually allow yet to be born update_ref 2012-02-15 13:07:41 +01:00
config Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
core Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
diff Iterator improvements from diff implementation 2012-02-22 11:22:33 -08:00
index Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
network Add git_remote_save() 2012-02-20 19:48:41 +01:00
notes Add git notes API 2012-02-15 20:32:14 +01:00
object Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
odb Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
refs tests-clar: fix warning sign-compare 2012-02-13 12:13:05 +01:00
repo repository: ensure that the path to the .git directory ends with a forward slash when opening a repository through a working directory path 2012-02-03 12:46:50 +01:00
status Add unit tests for recent bug fixes 2012-02-01 12:30:35 -08:00
clar Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
clar_helpers.c Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
clar_libgit2.h Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
README.md Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00

Writing Clar tests for libgit2

For information on the Clar testing framework and a detailed introduction please visit:

https://github.com/tanoku/clar

  • Write your modules and tests. Use good, meaningful names.

  • Make sure you actually build the tests by setting:

      cmake -DBUILD_CLAR=ON build/
    
  • Test:

      ./build/libgit2_clar
    
  • Make sure everything is fine.

  • Send your pull request. That's it.