Fix build after merging main into #368
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
46399aa729
commit
3cc0dc77cb
|
|
@ -443,8 +443,9 @@ mod tests {
|
|||
/// the file system itself would bypass them, so none may: every file under `src/` except
|
||||
/// `io.rs`, this module and the test files. Audio is decoded into the session when it enters
|
||||
/// it (import, open, sampler load), so playback and bounce read nothing from disk and need no
|
||||
/// check of their own. No engine module reads a fixed folder (plug-in scans live in the host
|
||||
/// crates), so nothing else is skipped.
|
||||
/// check of their own. Plug-in scans live in the host crates. The one engine module that reads
|
||||
/// and writes a fixed folder is `autosave.rs`: crash-recovery copies in the app's own data
|
||||
/// folder, which no command names, so it is skipped too.
|
||||
#[test]
|
||||
fn commands_do_not_touch_the_file_system_themselves() {
|
||||
fn walk(dir: &Path, files: &mut Vec<PathBuf>) {
|
||||
|
|
@ -464,8 +465,9 @@ mod tests {
|
|||
let mut offenders = vec![];
|
||||
for path in files {
|
||||
let name = path.file_name().and_then(|n| n.to_str()).unwrap_or("");
|
||||
// `io` and this module are the checked gateway; `tests*.rs` are test-only modules.
|
||||
if path.parent() == Some(src.as_path()) && matches!(name, "io.rs" | "file_access.rs") || name.starts_with("tests") {
|
||||
// `io` and this module are the checked gateway; `autosave` writes the app's own
|
||||
// recovery folder; `tests*.rs` are test-only modules.
|
||||
if path.parent() == Some(src.as_path()) && matches!(name, "io.rs" | "file_access.rs" | "autosave.rs") || name.starts_with("tests") {
|
||||
continue;
|
||||
}
|
||||
let text = std::fs::read_to_string(&path).unwrap();
|
||||
|
|
|
|||
Loading…
Reference in New Issue