mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 04:55:42 +09:00
chore(repo): remove dead code and useless tests (#3375)
This commit is contained in:
1 parent
7e177a1c90
commit
1cd62eb661
1391 files changed
+783
-120415
No files matched your search
@@ -255,20 +255,6 @@ mod platform {
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn validation_rejects_empty_paths() {
|
||||
let err = validate_file_path("").expect_err("empty path should be rejected");
|
||||
assert_eq!(err.status, Status::InvalidArg);
|
||||
assert_eq!(err.reason, "path must be non-empty");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn validation_rejects_nul_bytes() {
|
||||
let err = validate_file_path("before\0after").expect_err("NUL path should be rejected");
|
||||
assert_eq!(err.status, Status::InvalidArg);
|
||||
assert_eq!(err.reason, "path must not contain NUL bytes");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn hdrop_payload_uses_unicode_dropfiles_layout() {
|
||||
let payload = build_hdrop_payload("C:\\Temp\\a.txt");
|
||||
@@ -292,13 +278,4 @@ mod tests {
|
||||
assert_eq!(String::from_utf16(&path_units).unwrap(), "C:\\Temp\\a.txt");
|
||||
assert_eq!(&payload[payload.len() - 4..], &[0, 0, 0, 0]);
|
||||
}
|
||||
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
#[test]
|
||||
fn non_windows_worker_preserves_stub_error_contract() {
|
||||
let err =
|
||||
platform::write_file_reference("/tmp/file.txt").expect_err("non-Windows should fail");
|
||||
assert_eq!(err.status, Status::GenericFailure);
|
||||
assert_eq!(err.reason, "win-clipboard not supported on this platform");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user