Skip to content

test(backend): add unit tests for codec types and StoreSlot#69

Merged
refcell merged 1 commit intomainfrom
impl-beta/add-types-tests
Feb 1, 2026
Merged

test(backend): add unit tests for codec types and StoreSlot#69
refcell merged 1 commit intomainfrom
impl-beta/add-types-tests

Conversation

@refcell
Copy link
Owner

@refcell refcell commented Feb 1, 2026

Summary

Add unit tests for internal codec types and the StoreSlot utility type in the backend crate.

Changes

  • crates/storage/backend/src/types.rs: Added 11 new unit tests covering:
    • AccountValue: roundtrip encoding/decoding, encode_size verification
    • StorageValue: roundtrip encoding/decoding, max value handling, encode_size verification
    • StoreSlot<T>: get, take, restore, into_inner operations and error cases

Verification

  • All 11 tests pass
  • Clippy clean
  • Comprehensive coverage of internal codec and utility types

@refcell refcell merged commit 8368667 into main Feb 1, 2026
5 checks passed
@refcell refcell deleted the impl-beta/add-types-tests branch February 1, 2026 23:59
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