diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-09-26 11:14:45 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-09-26 11:14:45 +0800 |
| commit | dfaff711cd1cc5d500599a3146891f72f6903c45 (patch) | |
| tree | cad050748b3bda970cfa760a35bde1b386829e76 /crates/vcs/vcs_test/src/lib.rs | |
| parent | e366cade07b5408f95a0e6c268ee123e014e261c (diff) | |
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
Diffstat (limited to 'crates/vcs/vcs_test/src/lib.rs')
| -rw-r--r-- | crates/vcs/vcs_test/src/lib.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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<PathBuf, std::io::Error> { let dir = current_dir()?.join(".temp").join("test").join(area); if !dir.exists() { |
