File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
tests/libgit2/odb/backend Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,31 @@ void test_odb_backend_loose__cleanup(void)
3232 cl_fixture_cleanup ("testrepo.git" );
3333}
3434
35- void test_odb_backend_loose__read (void )
35+ void test_odb_backend_loose__read_from_odb (void )
3636{
3737 git_oid oid ;
3838 git_odb_object * obj ;
3939
4040 cl_git_pass (git_oid__fromstr (& oid , "1385f264afb75a56a5bec74243be9b367ba4ca08" , GIT_OID_SHA1 ));
4141 cl_git_pass (git_odb_read (& obj , _odb , & oid ));
4242 git_odb_object_free (obj );
43+
44+ cl_git_pass (git_oid__fromstr (& oid , "fd093bff70906175335656e6ce6ae05783708765" , GIT_OID_SHA1 ));
45+ cl_git_pass (git_odb_read (& obj , _odb , & oid ));
46+ git_odb_object_free (obj );
47+ }
48+
49+ void test_odb_backend_loose__read_from_repo (void )
50+ {
51+ git_oid oid ;
52+ git_blob * blob ;
53+ git_tree * tree ;
54+
55+ cl_git_pass (git_oid__fromstr (& oid , "1385f264afb75a56a5bec74243be9b367ba4ca08" , GIT_OID_SHA1 ));
56+ cl_git_pass (git_blob_lookup (& blob , _repo , & oid ));
57+ git_blob_free (blob );
58+
59+ cl_git_pass (git_oid__fromstr (& oid , "fd093bff70906175335656e6ce6ae05783708765" , GIT_OID_SHA1 ));
60+ cl_git_pass (git_tree_lookup (& tree , _repo , & oid ));
61+ git_tree_free (tree );
4362}
You can’t perform that action at this time.
0 commit comments