libgit2/tests-clar
Russell Belfer 2bc8fa0227 Implement git_pool paged memory allocator
This adds a `git_pool` object that can do simple paged memory
allocation with free for the entire pool at once.  Using this,
you can replace many small allocations with large blocks that
can then cheaply be doled out in small pieces.  This is best
used when you plan to free the small blocks all at once - for
example, if they represent the parsed state from a file or data
stream that are either all kept or all discarded.

There are two real patterns of usage for `git_pools`: either
for "string" allocation, where the item size is a single byte
and you end up just packing the allocations in together, or for
"fixed size" allocation where you are allocating a large object
(e.g. a `git_oid`) and you generally just allocation single
objects that can be tightly packed.  Of course, you can use it
for other things, but those two cases are the easiest.
2012-04-25 10:42:37 -07:00
..
attr Update clar and remove old helpers 2012-04-17 10:35:11 -07: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 config: also allow escaping outside of a quoted string 2012-04-25 15:47:53 +02:00
core Implement git_pool paged memory allocator 2012-04-25 10:42:37 -07:00
diff Fix warnings on 64-bit windows builds 2012-04-17 10:47:39 -07:00
index Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
network transport/local: Fix peeling of nested tags 2012-04-10 21:39:01 +02:00
notes tests-clar/notes: init oid before using 2012-02-23 23:38:48 +01:00
object tag: Add git_tag_peel() which recursively peel a tag until a non tag git_object is met 2012-04-10 21:38:49 +02:00
odb Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00
refs Rename to git_reference_name_to_oid 2012-04-23 10:06:31 -07:00
repo Merge pull request #632 from arrbee/win64-cleanup 2012-04-23 17:28:11 -07:00
revwalk revwalk: add test hiding a commit without a merge base 2012-04-12 20:25:25 +02:00
status Fix warnings on 64-bit windows builds 2012-04-17 10:47:39 -07:00
clar tests-clar: update to latest version of clar 2012-04-21 18:36:13 +02:00
clar_helpers.c Refactor git_repository_open with new options 2012-04-11 12:11:35 -07:00
clar_libgit2.h Update clar and remove old helpers 2012-04-17 10:35:11 -07: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.