test(tui): externalize and expand UI coverage
This commit is contained in:
1 parent
868f3e5b9d
commit
6138e248cb
60 files changed
+3193
-2700
No files matched your search
+1
-32
@@ -190,35 +190,4 @@ impl Visit for MessageVisitor {
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn minecraft_events_are_not_general_app_logs() {
|
||||
assert!(!should_record_app_log(MINECRAFT_LOG_TARGET, Level::ERROR));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn rmcl_events_are_general_app_logs() {
|
||||
assert!(should_record_app_log(
|
||||
"rmcl::instance::manager",
|
||||
Level::TRACE
|
||||
));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn dependency_debug_events_are_not_general_app_logs() {
|
||||
assert!(!should_record_app_log("log", Level::DEBUG));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn dependency_warnings_are_general_app_logs() {
|
||||
assert!(should_record_app_log("notify", Level::WARN));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn svg_renderer_warnings_do_not_interrupt_the_ui() {
|
||||
assert!(!should_record_app_log("usvg::text", Level::WARN));
|
||||
assert!(!should_record_app_log("usvg::parser::filter", Level::WARN));
|
||||
}
|
||||
}
|
||||
mod tests;
|
||||
Reference in new issue
Block a user