diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-08 17:46:04 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-16 00:16:49 +0100 |
| commit | 08f392080cfd7e08972820d8147dc06432e7c4bf (patch) | |
| tree | 14fe06510232924fc5e164d979a32980216104a0 /tests/odb | |
| parent | 5d92e54745eaad2c89aa6457d504411ceee3a4f4 (diff) | |
| download | libgit2-08f392080cfd7e08972820d8147dc06432e7c4bf.tar.gz | |
blob: add underscore to `from` functions
The majority of functions are named `from_something` (with an
underscore) instead of `fromsomething`. Update the blob functions for
consistency with the rest of the library.
Diffstat (limited to 'tests/odb')
| -rw-r--r-- | tests/odb/backend/mempack.c | 4 | ||||
| -rw-r--r-- | tests/odb/freshen.c | 6 |
2 files changed, 5 insertions, 5 deletions
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)); |
