mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-04 00:47:00 +01:00
added functionality to open shared files with you + fixed bug where mid transfer the SIGTERM signal can corrupt the mount
This commit is contained in:
1 parent
e0f0c7e0b7
commit
bf625bf8d9
15 files changed
+1621
-136
No files matched your search
@@ -2094,7 +2094,8 @@ mod tests {
|
||||
let remote: HashMap<String, RemoteItem> = HashMap::new();
|
||||
let baseline: HashMap<String, StoredSyncEntry> = HashMap::new();
|
||||
|
||||
let order = classification_order(&local, &remote, &baseline, &rules_for(&["node_modules/"]));
|
||||
let order =
|
||||
classification_order(&local, &remote, &baseline, &rules_for(&["node_modules/"]));
|
||||
|
||||
assert_eq!(
|
||||
order,
|
||||
@@ -2181,6 +2182,16 @@ mod tests {
|
||||
assert!(guard_local_wipe(&base, &fresh).is_err());
|
||||
}
|
||||
|
||||
/// A restored folder (features.md 5.2) starts with an empty baseline against
|
||||
/// an empty local directory and a full remote. That must reconcile as
|
||||
/// "download everything" rather than tripping the wipe guard — otherwise
|
||||
/// every restore would wedge its folder on the first pass.
|
||||
#[test]
|
||||
fn guard_local_wipe_is_inert_for_a_restored_folder() {
|
||||
let empty: HashMap<String, ()> = HashMap::new();
|
||||
assert!(guard_local_wipe(&empty, &empty).is_ok());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parent_and_base_split_relative_paths() {
|
||||
assert_eq!(parent_rel("a"), "");
|
||||
|
||||
Reference in new issue
Block a user