chore(repo): remove dead code and useless tests (#3375)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-10 21:43:29 +02:00
1 parent 7e177a1c90
commit 1cd62eb661
1391 files changed
+783 -120415

No files matched your search

@@ -84,36 +84,3 @@ mod platform {
))
}
}
#[cfg(test)]
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 validation_accepts_regular_absolute_paths() {
validate_file_path("/Users/example/Desktop/file.txt").expect("path should validate");
}
#[cfg(not(target_os = "macos"))]
#[test]
fn non_macos_worker_preserves_stub_error_contract() {
let err =
platform::write_file_reference("/tmp/file.txt").expect_err("non-macOS should fail");
assert_eq!(err.status, Status::GenericFailure);
assert_eq!(err.reason, "mac-clipboard called on non-macOS platform");
}
}