feat: Add identity module to test-utils and migrate objects-identity tests #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Add Tier 1 (identity) module to
objects-test-utilsand completely migrateobjects-identitytests to use shared utilities. This is part 2 of the test utilities consolidation effort (PR1b).Changes
New Functionality
src/identity.rs(200 lines): Identity factories with structured return typesRandomPasskeyIdentityandRandomWalletIdentitystructstest_identity_id()returns canonical "obj_2dMiYc8RhnYkorPc5pVh9"random_passkey_identity()andrandom_wallet_identity()factoriesProtocol Logic Enhancement
objects-identity/src/handle.rs: Exposed reserved handles as public APIHandle::reserved_handles()→&'static [&'static str]Handle::is_reserved(s: &str)→boolTest Migration
objects-identity/tests/integration_test.rs: Migrated all fixtures to useobjects_test_utils::cryptoobjects-identity/tests/property_test.rs: Updated to useHandle::reserved_handles()from main crateobjects-identity/tests/common/mod.rs(80 lines eliminated)Test Results
-D warningsMigration Strategy
Clean migration with no backward compatibility stubs:
tests/common/mod.rsentirelyVerification
Related