mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
4ac4d94cb8
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 |
||
---|---|---|
.. | ||
CheckoutTest.cpp | ||
DirstatePersistenceTest.cpp | ||
DirstateTest.cpp | ||
EdenMountHandlerTest.cpp | ||
InodeBaseTest.cpp | ||
InodeMapTest.cpp | ||
InodePtrTest.cpp | ||
RenameTest.cpp | ||
SymlinkTest.cpp | ||
TARGETS |