Skip to content

test(qmdb): add unit tests for StoreBatches type#62

Merged
refcell merged 2 commits intomainfrom
impl-beta/add-qmdb-batch-tests-v2
Feb 1, 2026
Merged

test(qmdb): add unit tests for StoreBatches type#62
refcell merged 2 commits intomainfrom
impl-beta/add-qmdb-batch-tests-v2

Conversation

@refcell
Copy link
Owner

@refcell refcell commented Feb 1, 2026

Summary

Add comprehensive unit tests for the StoreBatches struct in the qmdb crate.

Changes

  • crates/storage/qmdb/src/batch.rs: Added 8 unit tests covering:
    • new() and default() create empty batches
    • is_empty() correctly checks accounts, storage, and code batches
    • len() counts total operations across all batch types
    • Deletion operations using None values
    • Debug implementation

Verification

  • All 8 tests pass
  • Clippy passes with no warnings
  • Increases test coverage for the qmdb crate

Add comprehensive tests for the StoreBatches struct:
- new() and default() create empty batches
- is_empty() checks all batch types
- len() counts total operations across batches
- Deletion operations (None values)
- Debug implementation
@refcell refcell merged commit 32d36ba into main Feb 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments