oxedyne/fe2o3/fe2o3_file/tests/main.rs
990 bytes, 25 runs
created by r1870400018:317, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | mod edit; |
| 2 | mod exif; |
| 3 | mod glob; |
| 4 | mod odf; |
| 5 | mod office; |
| 6 | mod tree; |
| 7 | mod pptx; |
| 8 | mod xlsx; |
| 9 | mod zip; |
| 10 | |
| 11 | use oxedyne_fe2o3_core::prelude::*; |
| 12 | |
| 13 | |
| 14 | #[test] |
| 15 | fn main() -> Outcome<()> { |
| 16 | |
| 17 | // Separate the tests out to a run_tests function so that we can funnel any outcome, be it an |
| 18 | // error or ok, back into this function before closing out with a single call to log_finish_wait! to |
| 19 | // allow logger thread completion. Otherwise, we may not see all the logger output before the |
| 20 | // main thread finishes. |
| 21 | |
| 22 | log_set_level!("debug"); |
| 23 | |
| 24 | let outcome = run_tests(); |
| 25 | |
| 26 | log_finish_wait!(); |
| 27 | |
| 28 | outcome |
| 29 | } |
| 30 | |
| 31 | fn run_tests() -> Outcome<()> { |
| 32 | |
| 33 | let filter = "all"; |
| 34 | |
| 35 | res!(tree::test_tree(filter)); |
| 36 | res!(exif::test_exif(filter)); |
| 37 | res!(glob::test_glob(filter)); |
| 38 | res!(zip::test_zip(filter)); |
| 39 | res!(office::test_office(filter)); |
| 40 | res!(xlsx::test_xlsx(filter)); |
| 41 | res!(pptx::test_pptx(filter)); |
| 42 | res!(odf::test_odf(filter)); |
| 43 | res!(edit::test_edit(filter)); |
| 44 | |
| 45 | Ok(()) |
| 46 | } |