diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-07-25 09:00:58 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-07-25 11:23:27 +0200 |
commit | 1d733b573af9e3a987be96b31be5ac11d3517f66 (patch) | |
tree | 4cb78705828405b1e05d73645eebf6df1f0b5c15 | |
parent | 944d250f964698b33d9fa09e2e6af74b1dd84de2 (diff) | |
download | libgit2-1d733b573af9e3a987be96b31be5ac11d3517f66.tar.gz |
odb: add some documentation to the foreach() test
-rw-r--r-- | tests-clar/odb/foreach.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests-clar/odb/foreach.c b/tests-clar/odb/foreach.c index 525c70c0..e5d01eaf 100644 --- a/tests-clar/odb/foreach.c +++ b/tests-clar/odb/foreach.c @@ -29,8 +29,18 @@ static int foreach_cb(git_oid *oid, void *data) return 0; } +/* + * $ git --git-dir tests-clar/resources/testrepo.git count-objects --verbose + * count: 43 + * size: 3 + * in-pack: 1640 + * packs: 3 + * size-pack: 425 + * prune-packable: 0 + * garbage: 0 + */ void test_odb_foreach__foreach(void) { cl_git_pass(git_odb_foreach(_odb, foreach_cb, NULL)); - cl_assert(nobj == 1683); + cl_assert_equal_i(43 + 1640, nobj); /* count + in-pack */ } |