test: harden migration and UI coverage
This commit is contained in:
1 parent
9a390fd7a4
commit
e21f68fd7c
6 files changed
+146
-15
No files matched your search
+2
-1
@@ -61,7 +61,8 @@ fn read_log_file_returns_lines() {
|
||||
|
||||
#[test]
|
||||
fn read_log_file_missing_returns_empty() {
|
||||
let lines = read_log_file(Path::new("/nonexistent/test.log"));
|
||||
let tmp = tempfile::tempdir().unwrap();
|
||||
let lines = read_log_file(&tmp.path().join("missing.log"));
|
||||
assert!(lines.is_empty());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user