[core] Tests: the mandatory suites, red against the API stubs (55 tests)

This commit is contained in:
2026-11-08 14:04:09 +01:00
parent eeef676991
commit c59480a0c0
18 changed files with 2876 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
//! Attachment names from mail are hostile: `../../evil.exe`, `CON.txt`, `invoice\u{202E}fdp.exe`.
/// The longest name kept, in characters (the extension is kept when cutting).
pub const MAX_FILENAME_CHARS: usize = 120;
/// A name that is safe to create in any directory on Windows, Android and iOS, and that shows what it is.
pub fn safe_filename(raw: &str) -> String {
let _ = raw;
todo!()
}