diff options
| author | Edward Thomson <ethomson@github.com> | 2016-06-25 20:02:45 -0400 |
|---|---|---|
| committer | Carlos MartÃn Nieto <cmn@dwim.me> | 2016-10-06 11:04:55 +0200 |
| commit | 565fb8dcd41eefb373ec6dc71dc2f19884d29cdc (patch) | |
| tree | 1f2dd0e07d187cd4a7f2df293359b5a40181939d /tests/odb | |
| parent | e8ab13b3fd8485086c2a906dac85ecc8fa162d84 (diff) | |
| download | libgit2-565fb8dcd41eefb373ec6dc71dc2f19884d29cdc.tar.gz | |
revwalk: introduce tests that hide old commits
Introduce some tests that show some commits, while hiding some commits
that have a timestamp older than the common ancestors of these two
commits.
Diffstat (limited to 'tests/odb')
| -rw-r--r-- | tests/odb/foreach.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/odb/foreach.c b/tests/odb/foreach.c index 12b81b4f1..42d706467 100644 --- a/tests/odb/foreach.c +++ b/tests/odb/foreach.c @@ -28,8 +28,8 @@ static int foreach_cb(const git_oid *oid, void *data) /* * $ git --git-dir tests/resources/testrepo.git count-objects --verbose - * count: 47 - * size: 4 + * count: 60 + * size: 240 * in-pack: 1640 * packs: 3 * size-pack: 425 @@ -44,7 +44,7 @@ void test_odb_foreach__foreach(void) git_repository_odb(&_odb, _repo); cl_git_pass(git_odb_foreach(_odb, foreach_cb, &nobj)); - cl_assert_equal_i(47 + 1640, nobj); /* count + in-pack */ + cl_assert_equal_i(60 + 1640, nobj); /* count + in-pack */ } void test_odb_foreach__one_pack(void) @@ -118,7 +118,7 @@ void test_odb_foreach__files_in_objects_dir(void) cl_git_pass(git_repository_odb(&odb, repo)); cl_git_pass(git_odb_foreach(odb, foreach_cb, &nobj)); - cl_assert_equal_i(47 + 1640, nobj); /* count + in-pack */ + cl_assert_equal_i(60 + 1640, nobj); /* count + in-pack */ git_odb_free(odb); git_repository_free(repo); |
