Skip to content

Commit

Permalink
test: comprehensive integration tests for cross-backend operations
Browse files Browse the repository at this point in the history
Added extensive integration tests to verify self-encryption functionality
across different storage backends:

* Added StorageBackend helper struct for managing memory/disk storage
* Added debug helpers for storage state visualization
* Implemented cross-backend tests:
  - Memory-to-memory, memory-to-disk, disk-to-memory operations
  - Large file handling (100MB+)
  - Concurrent access with multiple file sizes
  - Platform-specific size handling (page sizes, u16/u32 boundaries)
  - Error handling and recovery
* Added verification steps between operations
* Fixed chunk handling to ensure proper storage/retrieval flow
* Added detailed logging for debugging storage operations

These tests ensure consistent behavior across different storage backends
and verify data integrity through the entire encrypt/decrypt cycle.
  • Loading branch information
dirvine committed Nov 2, 2024
1 parent b1a7e7a commit a2f3a77
Showing 1 changed file with 425 additions and 0 deletions.
Loading

0 comments on commit a2f3a77

Please sign in to comment.