sapling/eden/fs/inodes/test
Adam Simpkins 4ac4d94cb8 add a FakeTreeBuilder class to make writing tests easier
Summary:
Add a FakeTreeBuilder class to make it easier to create Tree structures in the
FakeBackingStore using path names.  Previously the test code had to manually
chain together Trees and Blobs.  FakeTreeBuilder lets callers call setFile()
with a path name to define the file layout.  The files that were defined then
get converted into Tree and Blob data when finalize() is called.

This is similar to the existing TestMountBuilder::addFile() API.  However,
TestMountBuilder only populates the LocalStore.  FakeTreeBuilder populates
the FakeBackingStore instead.  The FakeBackingStore class allows tests to have
much more control about when objects appear ready from the backing store,
allowing control over the order in which Futures are fulfilled during the test.

Reviewed By: bolinfest

Differential Revision: D4609587

fbshipit-source-id: 9642d17daf0dc10f08901e51552bbb3c3e150b53
2017-03-02 14:24:10 -08:00
..
CheckoutTest.cpp add a FakeTreeBuilder class to make writing tests easier 2017-03-02 14:24:10 -08:00
DirstatePersistenceTest.cpp update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
DirstateTest.cpp update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
EdenMountHandlerTest.cpp update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
InodeBaseTest.cpp update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
InodeMapTest.cpp always load affected inodes in rename(), and update lock ordering 2017-02-03 18:35:03 -08:00
InodePtrTest.cpp update all copyright statements to "2016-present" 2017-01-20 22:03:02 -08:00
RenameTest.cpp always load affected inodes in rename(), and update lock ordering 2017-02-03 18:35:03 -08:00
SymlinkTest.cpp add symlink support to the overlay 2017-03-02 08:18:45 -08:00
TARGETS Drop AutoHeaders.RECURSIVE_GLOB from TARGETS files 2017-02-28 21:46:39 -08:00