Add manual bindings for MutableTree reading

I'm trying to debug a problem in ostree-rs-ext, and it's
handy to be able to do `dbg!(mtree.copy_files())`.
This commit is contained in:
Colin Walters committed 2022-05-06 12:53:57 -04:00
1 parent 46b4a12b23
commit 1199ae9bbc
3 files changed
+50

No files matched your search

+2
View File
@@ -50,6 +50,8 @@ impl CapTestRepo {
pub fn create_mtree(repo: &ostree::Repo) -> ostree::MutableTree {
let mtree = ostree::MutableTree::new();
assert_eq!(mtree.copy_files().len(), 0);
assert_eq!(mtree.copy_subdirs().len(), 0);
let file = gio::File::for_path(
Path::new(env!("CARGO_MANIFEST_DIR"))
.join("tests")