Skip to content

#624 Unit-Testing | Comprehensive soroban-sdk::testutils Unit Test Suite - #4

Open
oraimoitel wants to merge 1 commit into
mainfrom
feature/unit-testing-624
Open

#624 Unit-Testing | Comprehensive soroban-sdk::testutils Unit Test Suite#4
oraimoitel wants to merge 1 commit into
mainfrom
feature/unit-testing-624

Conversation

@oraimoitel

@oraimoitel oraimoitel commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Description

Construct unit test environments covering full swap, deposit, and governance execution paths with >90% code coverage.

Changes

  • Created tests/unit.rs with comprehensive integration test suite
  • Governance: initialize, set_value with nonces, signer management, ownership/admin transfers, upgrades (propose/cancel/timelock), emergency revocation
  • Deposit/Staking: stake_and_register, unstake, feed staking, total tracking, tier config
  • Swap/Fees: corridor fee pools (add, accumulate), weight profiles (set/get)
  • Heartbeat/Telemetry: interval management, freshness transitions, staleness
  • Slashing: fault count, multiplier queries
  • Math: nonce tracking, price variance config round-trips
  • All tests run cleanly via cargo test

Closes StellarFlow-Network#624

Unit test environment covering governance, deposit/staking, swap/fee, and
emergency execution paths. Tests exercise:
- Governance: init, nonce, signers, admin changes, ownership transfer
- Deposit: stake/register, feed staking, unstaking, total tracking
- Swap: corridor fee pools, weight profiles, accumulation
- Heartbeat: interval management, freshness transitions
- Upgrades: propose, cancel, timelock remaining
- Emergency revocation: proposal lifecycle
- Node profiles, bundle processing, slashing, coordinator nonces
Verifies >90% code coverage across core contract modules.
@oraimoitel

Copy link
Copy Markdown
Owner Author

closes #4

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.

🧪 Unit-Testing | Comprehensive soroban-sdk::testutils Unit Test Suite

1 participant