diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2019-02-21 10:33:30 +0000 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-02-22 11:25:14 +0000 |
| commit | a1ef995dc03379fb1f5151b5d98d16644218c95e (patch) | |
| tree | f209958f5f27dfbe3dc2da296c801563a348cce4 /tests/pack | |
| parent | 975d6722a5c203427ab63789d329c00b76461225 (diff) | |
| download | libgit2-a1ef995dc03379fb1f5151b5d98d16644218c95e.tar.gz | |
indexer: use git_indexer_progress throughout
Update internal usage of `git_transfer_progress` to
`git_indexer_progreses`.
Diffstat (limited to 'tests/pack')
| -rw-r--r-- | tests/pack/indexer.c | 14 | ||||
| -rw-r--r-- | tests/pack/packbuilder.c | 6 |
2 files changed, 10 insertions, 10 deletions
diff --git a/tests/pack/indexer.c b/tests/pack/indexer.c index 3c4e1c1ee..08247ae46 100644 --- a/tests/pack/indexer.c +++ b/tests/pack/indexer.c @@ -98,7 +98,7 @@ static const unsigned int base_obj_len = 2; void test_pack_indexer__out_of_order(void) { git_indexer *idx = 0; - git_transfer_progress stats = { 0 }; + git_indexer_progress stats = { 0 }; cl_git_pass(git_indexer_new(&idx, ".", 0, NULL, NULL)); cl_git_pass(git_indexer_append( @@ -115,7 +115,7 @@ void test_pack_indexer__out_of_order(void) void test_pack_indexer__missing_trailer(void) { git_indexer *idx = 0; - git_transfer_progress stats = { 0 }; + git_indexer_progress stats = { 0 }; cl_git_pass(git_indexer_new(&idx, ".", 0, NULL, NULL)); cl_git_pass(git_indexer_append( @@ -131,7 +131,7 @@ void test_pack_indexer__missing_trailer(void) void test_pack_indexer__leaky(void) { git_indexer *idx = 0; - git_transfer_progress stats = { 0 }; + git_indexer_progress stats = { 0 }; cl_git_pass(git_indexer_new(&idx, ".", 0, NULL, NULL)); cl_git_pass(git_indexer_append( @@ -147,7 +147,7 @@ void test_pack_indexer__leaky(void) void test_pack_indexer__fix_thin(void) { git_indexer *idx = NULL; - git_transfer_progress stats = { 0 }; + git_indexer_progress stats = { 0 }; git_repository *repo; git_odb *odb; git_oid id, should_id; @@ -213,7 +213,7 @@ void test_pack_indexer__fix_thin(void) void test_pack_indexer__corrupt_length(void) { git_indexer *idx = NULL; - git_transfer_progress stats = { 0 }; + git_indexer_progress stats = { 0 }; git_repository *repo; git_odb *odb; git_oid id, should_id; @@ -243,7 +243,7 @@ void test_pack_indexer__incomplete_pack_fails_with_strict(void) { git_indexer_options opts = GIT_INDEXER_OPTIONS_INIT; git_indexer *idx = 0; - git_transfer_progress stats = { 0 }; + git_indexer_progress stats = { 0 }; opts.verify = 1; @@ -263,7 +263,7 @@ void test_pack_indexer__out_of_order_with_connectivity_checks(void) { git_indexer_options opts = GIT_INDEXER_OPTIONS_INIT; git_indexer *idx = 0; - git_transfer_progress stats = { 0 }; + git_indexer_progress stats = { 0 }; opts.verify = 1; diff --git a/tests/pack/packbuilder.c b/tests/pack/packbuilder.c index 394841e87..397d32e92 100644 --- a/tests/pack/packbuilder.c +++ b/tests/pack/packbuilder.c @@ -12,7 +12,7 @@ static git_packbuilder *_packbuilder; static git_indexer *_indexer; static git_vector _commits; static int _commits_is_initialized; -static git_transfer_progress _stats; +static git_indexer_progress _stats; extern bool git_disable_pack_keep_file_checks; @@ -88,14 +88,14 @@ static void seed_packbuilder(void) static int feed_indexer(void *ptr, size_t len, void *payload) { - git_transfer_progress *stats = (git_transfer_progress *)payload; + git_indexer_progress *stats = (git_indexer_progress *)payload; return git_indexer_append(_indexer, ptr, len, stats); } void test_pack_packbuilder__create_pack(void) { - git_transfer_progress stats; + git_indexer_progress stats; git_buf buf = GIT_BUF_INIT, path = GIT_BUF_INIT; git_hash_ctx ctx; git_oid hash; |
