From a59d9d497a528b0d10e8f3db590d2a80ebc852ca Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 17 Feb 2026 21:30:25 -0600 Subject: [PATCH] Add stage_paths field to PatchSet struct in tests - Introduced a new field, `stage_paths`, to the `PatchSet` struct in `patch_compute.rs` to track filesystem paths for staging. - Updated test cases to initialize `stage_paths` alongside other fields, ensuring consistency in patch set creation. These changes enhance the testing framework by providing additional context for staged paths in patch sets. --- src/snapshot/patch_compute.rs | 2 ++ tests/tests/git_sync_defaults.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/snapshot/patch_compute.rs b/src/snapshot/patch_compute.rs index 56c5bd58..49acf0ed 100644 --- a/src/snapshot/patch_compute.rs +++ b/src/snapshot/patch_compute.rs @@ -348,6 +348,7 @@ mod test { added_instances: Vec::new(), removed_instances: Vec::new(), stage_ids: std::collections::HashSet::new(), + stage_paths: Vec::new(), }; assert_eq!(patch_set, expected_patch_set); @@ -399,6 +400,7 @@ mod test { updated_instances: Vec::new(), removed_instances: Vec::new(), stage_ids: std::collections::HashSet::new(), + stage_paths: Vec::new(), }; assert_eq!(patch_set, expected_patch_set); diff --git a/tests/tests/git_sync_defaults.rs b/tests/tests/git_sync_defaults.rs index fd37c11e..171db27d 100644 --- a/tests/tests/git_sync_defaults.rs +++ b/tests/tests/git_sync_defaults.rs @@ -17,7 +17,7 @@ use std::process::Command; use std::time::Duration; use std::{fs, thread}; -use librojo::web_api::{AddedInstance, InstanceUpdate, WriteRequest}; +use librojo::web_api::{InstanceUpdate, WriteRequest}; use rbx_dom_weak::types::{Ref, Variant}; use rbx_dom_weak::{ustr, UstrMap};