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.
This commit is contained in:
Joe 2026-02-17 21:30:25 -06:00
parent 6de088be31
commit a59d9d497a
2 changed files with 3 additions and 1 deletions

View file

@ -348,6 +348,7 @@ mod test {
added_instances: Vec::new(), added_instances: Vec::new(),
removed_instances: Vec::new(), removed_instances: Vec::new(),
stage_ids: std::collections::HashSet::new(), stage_ids: std::collections::HashSet::new(),
stage_paths: Vec::new(),
}; };
assert_eq!(patch_set, expected_patch_set); assert_eq!(patch_set, expected_patch_set);
@ -399,6 +400,7 @@ mod test {
updated_instances: Vec::new(), updated_instances: Vec::new(),
removed_instances: Vec::new(), removed_instances: Vec::new(),
stage_ids: std::collections::HashSet::new(), stage_ids: std::collections::HashSet::new(),
stage_paths: Vec::new(),
}; };
assert_eq!(patch_set, expected_patch_set); assert_eq!(patch_set, expected_patch_set);

View file

@ -17,7 +17,7 @@ use std::process::Command;
use std::time::Duration; use std::time::Duration;
use std::{fs, thread}; 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::types::{Ref, Variant};
use rbx_dom_weak::{ustr, UstrMap}; use rbx_dom_weak::{ustr, UstrMap};