diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-07-25 11:00:58 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-07-25 13:23:27 +0400 |
commit | 1d733b573af9e3a987be96b31be5ac11d3517f66 (patch) | |
tree | 4cb78705828405b1e05d73645eebf6df1f0b5c15 /tests-clar/odb | |
parent | 944d250f964698b33d9fa09e2e6af74b1dd84de2 (diff) |
odb: add some documentation to the foreach() test
Diffstat (limited to 'tests-clar/odb')
-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 525c70c09..e5d01eafd 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 */ } |