FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
test(ui-egui): skip tests.rs files in the i18n source scan
aiongg7d6e0d41e061
diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rsindex 581df505c..40a20d89d 100644--- a/crates/ui-egui/src/i18n/tests.rs+++ b/crates/ui-egui/src/i18n/tests.rs@@ -201,7 +201,7 @@ fn sources() -> Vec<(String, String)> {let p = entry.path();if p.is_dir() {dirs.push(p);- } else if p.extension().is_some_and(|e| e == "rs") {+ } else if p.extension().is_some_and(|e| e == "rs") && p.file_name().is_some_and(|n| n != "tests.rs") {// a Windows checkout with core.autocrlf has CRLF, which the `\n` below would not matchlet text = std::fs::read_to_string(&p).unwrap_or_default().replace("\r\n", "\n");let cut = text.find("#[cfg(test)]\nmod tests").unwrap_or(text.len());