diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-06-16 02:36:21 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-06-16 02:36:21 +0200 |
| commit | fa48608ec30758dbf6d0d26d3c4f8efba8efe8e9 (patch) | |
| tree | 31e3cc7bedaa6c4d3a8b8d37903991ed811eb02d /tests/t03-objwrite.c | |
| parent | 43521d0688c744e98f07f19dd0b15e6b2c763693 (diff) | |
| download | libgit2-fa48608ec30758dbf6d0d26d3c4f8efba8efe8e9.tar.gz | |
oid: Rename methods
Yeah. Finally. Fuck the old names, this ain't POSIX
and they don't make any sense at all.
Diffstat (limited to 'tests/t03-objwrite.c')
| -rw-r--r-- | tests/t03-objwrite.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/t03-objwrite.c b/tests/t03-objwrite.c index 773887397..08ddc0fd1 100644 --- a/tests/t03-objwrite.c +++ b/tests/t03-objwrite.c @@ -104,7 +104,7 @@ BEGIN_TEST(write0, "write loose commit object") must_pass(make_odb_dir()); must_pass(git_odb_open(&db, odb_dir)); - must_pass(git_oid_mkstr(&id1, commit.id)); + must_pass(git_oid_fromstr(&id1, commit.id)); must_pass(streaming_write(&id2, db, &commit_obj)); must_be_true(git_oid_cmp(&id1, &id2) == 0); @@ -125,7 +125,7 @@ BEGIN_TEST(write1, "write loose tree object") must_pass(make_odb_dir()); must_pass(git_odb_open(&db, odb_dir)); - must_pass(git_oid_mkstr(&id1, tree.id)); + must_pass(git_oid_fromstr(&id1, tree.id)); must_pass(streaming_write(&id2, db, &tree_obj)); must_be_true(git_oid_cmp(&id1, &id2) == 0); @@ -146,7 +146,7 @@ BEGIN_TEST(write2, "write loose tag object") must_pass(make_odb_dir()); must_pass(git_odb_open(&db, odb_dir)); - must_pass(git_oid_mkstr(&id1, tag.id)); + must_pass(git_oid_fromstr(&id1, tag.id)); must_pass(streaming_write(&id2, db, &tag_obj)); must_be_true(git_oid_cmp(&id1, &id2) == 0); @@ -167,7 +167,7 @@ BEGIN_TEST(write3, "write zero-length object") must_pass(make_odb_dir()); must_pass(git_odb_open(&db, odb_dir)); - must_pass(git_oid_mkstr(&id1, zero.id)); + must_pass(git_oid_fromstr(&id1, zero.id)); must_pass(streaming_write(&id2, db, &zero_obj)); must_be_true(git_oid_cmp(&id1, &id2) == 0); @@ -188,7 +188,7 @@ BEGIN_TEST(write4, "write one-byte long object") must_pass(make_odb_dir()); must_pass(git_odb_open(&db, odb_dir)); - must_pass(git_oid_mkstr(&id1, one.id)); + must_pass(git_oid_fromstr(&id1, one.id)); must_pass(streaming_write(&id2, db, &one_obj)); must_be_true(git_oid_cmp(&id1, &id2) == 0); @@ -209,7 +209,7 @@ BEGIN_TEST(write5, "write two-byte long object") must_pass(make_odb_dir()); must_pass(git_odb_open(&db, odb_dir)); - must_pass(git_oid_mkstr(&id1, two.id)); + must_pass(git_oid_fromstr(&id1, two.id)); must_pass(streaming_write(&id2, db, &two_obj)); must_be_true(git_oid_cmp(&id1, &id2) == 0); @@ -230,7 +230,7 @@ BEGIN_TEST(write6, "write an object which is several bytes long") must_pass(make_odb_dir()); must_pass(git_odb_open(&db, odb_dir)); - must_pass(git_oid_mkstr(&id1, some.id)); + must_pass(git_oid_fromstr(&id1, some.id)); must_pass(streaming_write(&id2, db, &some_obj)); must_be_true(git_oid_cmp(&id1, &id2) == 0); |
