test: harden migration and UI coverage

This commit is contained in:
objz committed 2026-07-27 00:37:48 +02:00
1 parent 9a390fd7a4
commit e21f68fd7c
6 files changed
+146 -15

No files matched your search

+2 -1
View File
@@ -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());
}