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