libgit2/tests/odb
Patrick Steinhardt 6e010bb126 tests: odb: allow passing fake objects to the fake backend
Right now, the fake backend is quite restrained in the way how it
works: we pass it an OID which it is to return later as well as an error
code we want it to return. While this is sufficient for existing tests,
we can make the fake backend a little bit more generic in order to allow
us testing for additional scenarios.

To do so, we change the backend to not accept an error code and OID
which it is to return for queries, but instead a simple array of OIDs
with their respective blob contents. On each query, the fake backend
simply iterates through this array and returns the first matching
object.
2017-06-12 17:24:53 +02:00
..
backend tests: odb: allow passing fake objects to the fake backend 2017-06-12 17:24:53 +02:00
alternates.c git_futils_mkdir_*: make a relative-to-base mkdir 2015-09-17 10:00:35 -04:00
emptyobjects.c odb: only provide the empty tree 2016-08-05 19:30:56 -04:00
foreach.c revwalk: introduce tests that hide old commits 2016-10-06 11:04:55 +02:00
freshen.c win32: enable p_utimes for readonly files 2017-04-05 11:04:29 +01:00
loose_data.h Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
loose.c settings: rename GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION 2017-06-08 21:40:18 +02:00
mixed.c odb: Handle corner cases in git_odb_expand_ids 2016-03-09 11:00:27 +01:00
pack_data_one.h Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
pack_data.h Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
packed_one.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
packed.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
sorting.c odb: Prioritize alternate backends 2015-10-14 20:53:01 +02:00
streamwrite.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00