neige_undump/
lib.rs

1mod binary;
2mod info;
3
4pub use binary::undump;
5
6#[cfg(test)]
7#[cfg(not(feature = "wasm"))]
8mod tests {
9    use std::io::BufReader;
10
11    use anyhow::{Ok, Result};
12    use neige_infra::read_file;
13
14    use crate::binary::undump;
15    use crate::info::ProtoPrint;
16
17    #[test]
18    fn proto_undump_test() -> Result<()> {
19        let file = read_file("example/test.out")?;
20        let data = BufReader::new(file);
21        let proto = undump(data, "test.out");
22        proto.list_proto();
23        Ok(())
24    }
25}