From dfaff711cd1cc5d500599a3146891f72f6903c45 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 26 Sep 2025 11:14:45 +0800 Subject: test: add comprehensive sheet management test suite - Add test_sheet_creation_management_and_persistence with 3 test functions: - Main test covering sheet creation, input/mapping management, persistence, and deletion - Error condition testing for invalid operations - Serialization testing through vault operations - Test coverage includes: - Sheet creation with member validation - Input package addition and removal - Mapping entry management - File persistence and reloading - Safe deletion to trash and restoration - Permanent deletion - Error handling for invalid operations - Follows existing test patterns and uses proper getter methods for private fields --- crates/vcs/vcs_test/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/vcs/vcs_test/src/lib.rs') diff --git a/crates/vcs/vcs_test/src/lib.rs b/crates/vcs/vcs_test/src/lib.rs index d9e6f94..8ad03e1 100644 --- a/crates/vcs/vcs_test/src/lib.rs +++ b/crates/vcs/vcs_test/src/lib.rs @@ -11,6 +11,9 @@ pub mod test_virtual_file_creation_and_update; #[cfg(test)] pub mod test_local_workspace_setup_and_account_management; +#[cfg(test)] +pub mod test_sheet_creation_management_and_persistence; + pub async fn get_test_dir(area: &str) -> Result { let dir = current_dir()?.join(".temp").join("test").join(area); if !dir.exists() { -- cgit