oxedyne/fe2o3/fe2o3_text/tests/main.rs
949 bytes, 18 runs
created by r1870400018:1119, 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 base2x; |
| 2 | mod highlight; |
| 3 | mod markdown; |
| 4 | mod pattern; |
| 5 | mod secret; |
| 6 | mod string; |
| 7 | mod xml; |
| 8 | |
| 9 | use oxedyne_fe2o3_core::prelude::*; |
| 10 | |
| 11 | #[test] |
| 12 | fn main() -> Outcome<()> { |
| 13 | |
| 14 | // Separate the tests out to a run_tests function so that we can funnel any outcome, be it an |
| 15 | // error or ok, back into this function before closing out with a single call to log_finish_wait! to |
| 16 | // allow logger thread completion. Otherwise, we may not see all the logger output before the |
| 17 | // main thread finishes. |
| 18 | |
| 19 | log_set_level!("debug"); |
| 20 | |
| 21 | let outcome = run_tests(); |
| 22 | |
| 23 | log_finish_wait!(); |
| 24 | |
| 25 | outcome |
| 26 | } |
| 27 | |
| 28 | fn run_tests() -> Outcome<()> { |
| 29 | |
| 30 | let filter = "all"; |
| 31 | res!(base2x::test_base2x(filter)); |
| 32 | res!(highlight::test_highlight(filter)); |
| 33 | res!(markdown::test_markdown(filter)); |
| 34 | res!(pattern::test_pattern(filter)); |
| 35 | res!(secret::test_secret(filter)); |
| 36 | res!(string::test_string(filter)); |
| 37 | res!(xml::test_xml(filter)); |
| 38 | |
| 39 | Ok(()) |
| 40 | } |