libgit2/tests/odb
Patrick Steinhardt e29e802966 tests: odb: make hash of fake backend configurable
In the odb::backend::nonrefreshing test suite, we set up a fake backend
so that we are able to determine if backend functions are called
correctly. During the setup, we also parse an OID which is later on used
to read out the pseudo-object. While this procedure works right now, it
will create problems later when we implement hash verification for
looked up objects. The current OID ("deadbeef") will not match the hash
of contents we give back to the ODB layer and thus cannot be verified.

Make the hash configurable so that we can simply switch the returned for
single tests.
2017-04-28 14:05:44 +02:00
..
backend tests: odb: make hash of fake backend configurable 2017-04-28 14:05:44 +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 Honor core.fsyncObjectFiles 2017-03-02 09:11:33 +00: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