oxedyne/fe2o3/fe2o3_hash/tests/main.rs
718 bytes, 9 runs
created by r1870400018:365, 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 hash; |
| 2 | mod map; |
| 3 | mod phash; |
| 4 | |
| 5 | use oxedyne_fe2o3_core::prelude::*; |
| 6 | |
| 7 | #[test] |
| 8 | fn main() -> Outcome<()> { |
| 9 | |
| 10 | // Separate the tests out to a run_tests function so that we can funnel any outcome, be it an |
| 11 | // error or ok, back into this function before closing out with a single call to log_finish_wait! to |
| 12 | // allow logger thread completion. Otherwise, we may not see all the logger output before the |
| 13 | // main thread finishes. |
| 14 | |
| 15 | log_set_level!("debug"); |
| 16 | |
| 17 | let outcome = run_tests(); |
| 18 | |
| 19 | log_finish_wait!(); |
| 20 | |
| 21 | outcome |
| 22 | } |
| 23 | |
| 24 | fn run_tests() -> Outcome<()> { |
| 25 | |
| 26 | let filter = "all"; |
| 27 | res!(hash::test_hash(filter)); |
| 28 | res!(map::test_map(filter)); |
| 29 | res!(phash::test_phash(filter)); |
| 30 | |
| 31 | Ok(()) |
| 32 | } |