root_io/tree_reader/
mod.rs1mod branch;
9mod container;
10mod leafs;
11mod tree;
12
13pub use self::tree::{ttree, Tree};
14
15#[cfg(all(test, not(target_arch = "wasm32")))]
16mod tests {
17 use std::path::PathBuf;
18 use tokio;
19
20 use crate::core::RootFile;
21
22 #[tokio::test]
23 async fn simple_tree() {
24 let path = PathBuf::from("./src/test_data/simple.root");
25 let f = RootFile::new(path.as_path())
26 .await
27 .expect("Failed to open file");
28 f.items()[0].as_tree().await.unwrap();
29 }
30}