Skip to content

Fix/issues 1123 1124 1125 1126 - #1194

Open
emekaabraham666 wants to merge 4 commits into
StellerCraft:mainfrom
emekaabraham666:fix/issues-1123-1124-1125-1126
Open

Fix/issues 1123 1124 1125 1126#1194
emekaabraham666 wants to merge 4 commits into
StellerCraft:mainfrom
emekaabraham666:fix/issues-1123-1124-1125-1126

Conversation

@emekaabraham666

Copy link
Copy Markdown

Comprehensive Test Coverage for Stellar Package

Add property-based and edge-case testing across four critical modules:

  • ScVal integer serialization boundary values (u64, i64, u128, i128, u256, i256)
  • AutomaticTTLRenewer start/stop lifecycle in polling and event-driven modes
  • ContractStateSnapshotService restore with malformed JSON and empty entries
  • Asset compliance environment variable parsing and override precedence

All tests pass. 124 new test cases covering edge cases and lifecycle transitions.

Closes #1123
Closes #1124
Closes #1125
Closes #1126

…boundary values

Fixes StellerCraft#1123: Add comprehensive boundary value testing for u64, i64, u128, i128, u256, and i256 serialization round-trips, including exact min/max values and 64-bit segment boundary crossings where off-by-one bit-shifting errors are most likely.

Also fixes a bug where u128, i128, u256, and i256 serialization was not wrapping the value objects with proper XDR type constructors (UInt128Parts, Int128Parts, UInt256Parts, Int256Parts).
Fixes StellerCraft#1124: Add comprehensive lifecycle tests for both polling and event-driven modes, including:
- Double-start idempotency (does not register second timer/listener)
- Stop-then-restart in both modes correctly re-arms monitoring
- Event listener registration and removal
- Stop idempotency when not started
…d empty-entry snapshots

Fixes StellerCraft#1125: Add dedicated property tests for ContractStateSnapshotService.restore() edge cases:
- Successfully-decompressed-but-invalid-JSON payloads with improved snapshot-identifying error context
- Snapshots with zero entries restoring successfully with empty result
- Round-trip snapshot → restore with zero entries
…and override precedence

Fixes StellerCraft#1126: Add comprehensive tests for loadComplianceConfig edge cases:
- Malformed JSON in each env var independently with proper fallback
- Both env vars malformed simultaneously
- Override parameter taking complete precedence over env vars
- Override with one sibling env var malformed still warns appropriately
@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

@emekaabraham666 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment