diff options
Diffstat (limited to 'tests/odb/backend/mempack.c')
-rw-r--r-- | tests/odb/backend/mempack.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/odb/backend/mempack.c b/tests/odb/backend/mempack.c index 46c685c38..624f0e604 100644 --- a/tests/odb/backend/mempack.c +++ b/tests/odb/backend/mempack.c @@ -50,3 +50,11 @@ void test_odb_backend_mempack__exists_with_existing_objects_succeeds(void) cl_git_pass(git_odb_write(&_oid, _odb, data, strlen(data) + 1, GIT_OBJ_BLOB)); cl_assert(git_odb_exists(_odb, &_oid) == 1); } + +void test_odb_backend_mempack__blob_create_frombuffer_succeeds(void) +{ + const char *data = "data"; + + cl_git_pass(git_blob_create_frombuffer(&_oid, _repo, data, strlen(data) + 1)); + cl_assert(git_odb_exists(_odb, &_oid) == 1); +} |