diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/filter/blob.c | 4 | ||||
| -rw-r--r-- | tests/filter/ident.c | 2 | ||||
| -rw-r--r-- | tests/merge/merge_helpers.c | 2 | ||||
| -rw-r--r-- | tests/object/blob/filter.c | 2 | ||||
| -rw-r--r-- | tests/object/blob/fromstream.c | 8 | ||||
| -rw-r--r-- | tests/object/blob/write.c | 6 | ||||
| -rw-r--r-- | tests/odb/backend/mempack.c | 4 | ||||
| -rw-r--r-- | tests/odb/freshen.c | 6 |
8 files changed, 17 insertions, 17 deletions
diff --git a/tests/filter/blob.c b/tests/filter/blob.c index 6e30e20a3..22f350325 100644 --- a/tests/filter/blob.c +++ b/tests/filter/blob.c @@ -87,14 +87,14 @@ void test_filter_blob__ident(void) git_buf buf = { 0 }; cl_git_mkfile("crlf/test.ident", "Some text\n$Id$\nGoes there\n"); - cl_git_pass(git_blob_create_fromworkdir(&id, g_repo, "test.ident")); + cl_git_pass(git_blob_create_from_workdir(&id, g_repo, "test.ident")); cl_git_pass(git_blob_lookup(&blob, g_repo, &id)); cl_assert_equal_s( "Some text\n$Id$\nGoes there\n", git_blob_rawcontent(blob)); git_blob_free(blob); cl_git_mkfile("crlf/test.ident", "Some text\n$Id: Any old just you want$\nGoes there\n"); - cl_git_pass(git_blob_create_fromworkdir(&id, g_repo, "test.ident")); + cl_git_pass(git_blob_create_from_workdir(&id, g_repo, "test.ident")); cl_git_pass(git_blob_lookup(&blob, g_repo, &id)); cl_assert_equal_s( "Some text\n$Id$\nGoes there\n", git_blob_rawcontent(blob)); diff --git a/tests/filter/ident.c b/tests/filter/ident.c index cee0cc26b..ed2e4677f 100644 --- a/tests/filter/ident.c +++ b/tests/filter/ident.c @@ -23,7 +23,7 @@ static void add_blob_and_filter( git_buf out = { 0 }; cl_git_mkfile("crlf/identtest", data); - cl_git_pass(git_blob_create_fromworkdir(&id, g_repo, "identtest")); + cl_git_pass(git_blob_create_from_workdir(&id, g_repo, "identtest")); cl_git_pass(git_blob_lookup(&blob, g_repo, &id)); cl_git_pass(git_filter_list_apply_to_blob(&out, fl, blob)); diff --git a/tests/merge/merge_helpers.c b/tests/merge/merge_helpers.c index 1b68bdccb..cddb41178 100644 --- a/tests/merge/merge_helpers.c +++ b/tests/merge/merge_helpers.c @@ -352,7 +352,7 @@ int merge_test_workdir(git_repository *repo, const struct merge_index_entry expe return 0; for (i = 0; i < expected_len; i++) { - git_blob_create_fromworkdir(&actual_oid, repo, expected[i].path); + git_blob_create_from_workdir(&actual_oid, repo, expected[i].path); git_oid_fromstr(&expected_oid, expected[i].oid_str); if (git_oid_cmp(&actual_oid, &expected_oid) != 0) diff --git a/tests/object/blob/filter.c b/tests/object/blob/filter.c index 002177cee..45dbc9263 100644 --- a/tests/object/blob/filter.c +++ b/tests/object/blob/filter.c @@ -59,7 +59,7 @@ void test_object_blob_filter__initialize(void) if (g_crlf_raw_len[i] < 0) g_crlf_raw_len[i] = strlen(g_crlf_raw[i]); - cl_git_pass(git_blob_create_frombuffer( + cl_git_pass(git_blob_create_from_buffer( &g_crlf_oids[i], g_repo, g_crlf_raw[i], (size_t)g_crlf_raw_len[i])); } } diff --git a/tests/object/blob/fromstream.c b/tests/object/blob/fromstream.c index 60090b6e4..416b452c2 100644 --- a/tests/object/blob/fromstream.c +++ b/tests/object/blob/fromstream.c @@ -29,12 +29,12 @@ void test_object_blob_fromstream__multiple_write(void) cl_git_fail_with(GIT_ENOTFOUND, git_object_lookup(&blob, repo, &expected_id, GIT_OBJECT_ANY)); - cl_git_pass(git_blob_create_fromstream(&stream, repo, NULL)); + cl_git_pass(git_blob_create_from_stream(&stream, repo, NULL)); for (i = 0; i < howmany; i++) cl_git_pass(stream->write(stream, textual_content, strlen(textual_content))); - cl_git_pass(git_blob_create_fromstream_commit(&id, stream)); + cl_git_pass(git_blob_create_from_stream_commit(&id, stream)); cl_assert_equal_oid(&expected_id, &id); cl_git_pass(git_object_lookup(&blob, repo, &expected_id, GIT_OBJECT_BLOB)); @@ -67,12 +67,12 @@ static void assert_named_chunked_blob(const char *expected_sha, const char *fake cl_git_pass(git_oid_fromstr(&expected_id, expected_sha)); - cl_git_pass(git_blob_create_fromstream(&stream, repo, fake_name)); + cl_git_pass(git_blob_create_from_stream(&stream, repo, fake_name)); for (i = 0; i < howmany; i++) cl_git_pass(stream->write(stream, textual_content, strlen(textual_content))); - cl_git_pass(git_blob_create_fromstream_commit(&id, stream)); + cl_git_pass(git_blob_create_from_stream_commit(&id, stream)); cl_assert_equal_oid(&expected_id, &id); } diff --git a/tests/object/blob/write.c b/tests/object/blob/write.c index 4cf5a6607..e6b67fb71 100644 --- a/tests/object/blob/write.c +++ b/tests/object/blob/write.c @@ -33,7 +33,7 @@ void test_object_blob_write__can_create_a_blob_in_a_standard_repo_from_a_file_lo { repo = cl_git_sandbox_init(WORKDIR); - assert_blob_creation(WORKDIR "/test.txt", "test.txt", &git_blob_create_fromworkdir); + assert_blob_creation(WORKDIR "/test.txt", "test.txt", &git_blob_create_from_workdir); } void test_object_blob_write__can_create_a_blob_in_a_standard_repo_from_a_absolute_filepath_pointing_outside_of_the_working_directory(void) @@ -46,7 +46,7 @@ void test_object_blob_write__can_create_a_blob_in_a_standard_repo_from_a_absolut cl_must_pass(git_path_prettify_dir(&full_path, ELSEWHERE, NULL)); cl_must_pass(git_buf_puts(&full_path, "test.txt")); - assert_blob_creation(ELSEWHERE "/test.txt", git_buf_cstr(&full_path), &git_blob_create_fromdisk); + assert_blob_creation(ELSEWHERE "/test.txt", git_buf_cstr(&full_path), &git_blob_create_from_disk); git_buf_dispose(&full_path); cl_must_pass(git_futils_rmdir_r(ELSEWHERE, NULL, GIT_RMDIR_REMOVE_FILES)); @@ -62,7 +62,7 @@ void test_object_blob_write__can_create_a_blob_in_a_bare_repo_from_a_absolute_fi cl_must_pass(git_path_prettify_dir(&full_path, ELSEWHERE, NULL)); cl_must_pass(git_buf_puts(&full_path, "test.txt")); - assert_blob_creation(ELSEWHERE "/test.txt", git_buf_cstr(&full_path), &git_blob_create_fromdisk); + assert_blob_creation(ELSEWHERE "/test.txt", git_buf_cstr(&full_path), &git_blob_create_from_disk); git_buf_dispose(&full_path); cl_must_pass(git_futils_rmdir_r(ELSEWHERE, NULL, GIT_RMDIR_REMOVE_FILES)); diff --git a/tests/odb/backend/mempack.c b/tests/odb/backend/mempack.c index 55cd69f80..2eeed51aa 100644 --- a/tests/odb/backend/mempack.c +++ b/tests/odb/backend/mempack.c @@ -51,10 +51,10 @@ void test_odb_backend_mempack__exists_with_existing_objects_succeeds(void) cl_assert(git_odb_exists(_odb, &_oid) == 1); } -void test_odb_backend_mempack__blob_create_frombuffer_succeeds(void) +void test_odb_backend_mempack__blob_create_from_buffer_succeeds(void) { const char *data = "data"; - cl_git_pass(git_blob_create_frombuffer(&_oid, _repo, data, strlen(data) + 1)); + cl_git_pass(git_blob_create_from_buffer(&_oid, _repo, data, strlen(data) + 1)); cl_assert(git_odb_exists(_odb, &_oid) == 1); } diff --git a/tests/odb/freshen.c b/tests/odb/freshen.c index 1fe64309d..1ecd92a8d 100644 --- a/tests/odb/freshen.c +++ b/tests/odb/freshen.c @@ -47,7 +47,7 @@ void test_odb_freshen__loose_blob(void) set_time_wayback(&before, LOOSE_BLOB_FN); /* make sure we freshen a blob */ - cl_git_pass(git_blob_create_frombuffer(&id, repo, LOOSE_STR, CONST_STRLEN(LOOSE_STR))); + cl_git_pass(git_blob_create_from_buffer(&id, repo, LOOSE_STR, CONST_STRLEN(LOOSE_STR))); cl_assert_equal_oid(&expected_id, &id); cl_must_pass(p_lstat("testrepo.git/objects/" LOOSE_BLOB_FN, &after)); @@ -66,13 +66,13 @@ void test_odb_freshen__readonly_object(void) cl_git_pass(git_oid_fromstr(&expected_id, UNIQUE_BLOB_ID)); - cl_git_pass(git_blob_create_frombuffer(&id, repo, UNIQUE_STR, CONST_STRLEN(UNIQUE_STR))); + cl_git_pass(git_blob_create_from_buffer(&id, repo, UNIQUE_STR, CONST_STRLEN(UNIQUE_STR))); cl_assert_equal_oid(&expected_id, &id); set_time_wayback(&before, UNIQUE_BLOB_FN); cl_assert((before.st_mode & S_IWUSR) == 0); - cl_git_pass(git_blob_create_frombuffer(&id, repo, UNIQUE_STR, CONST_STRLEN(UNIQUE_STR))); + cl_git_pass(git_blob_create_from_buffer(&id, repo, UNIQUE_STR, CONST_STRLEN(UNIQUE_STR))); cl_assert_equal_oid(&expected_id, &id); cl_must_pass(p_lstat("testrepo.git/objects/" UNIQUE_BLOB_FN, &after)); |
