malvin 0.2.5

Non-interactive research and coding agent
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[test]
fn smoke_format_gate_failures_non_empty() {
    let ws = super::format_workspace_gate_failure("malvin -g", "gate failed");
    assert!(ws.contains("gate failed"));
    assert!(ws.contains("malvin -g"));
}

#[cfg(unix)]
#[test]
fn smoke_has_source_files_detects_symlink_to_rs_in_workspace() {
    use std::os::unix::fs::symlink;
    let tmp = tempfile::tempdir().unwrap();
    let outside = tempfile::tempdir().unwrap();
    let real = outside.path().join("real.rs");
    std::fs::write(&real, "fn main() {}").unwrap();
    symlink(&real, tmp.path().join("linked.rs")).unwrap();
    assert!(crate::source_detect::has_source_files(tmp.path()));
}