Urgent.News

What's breaking now, across thousands of outlets.

Tech

Batch Transaction - Testcases

Automated test coverage for the Batch transaction feature (XLS-56), grouped by the invariant or execution mode each test exercises with 189 tests. Category Test Count Execution Modes 42 Multi-Account & Multi-Sign 23 Tickets, Replay & Metadata 7 Vault, Loan & Transaction Types 24 Signature & Structural Validation 10 Security & Adversarial 56 Cross-Feature Interactions 27 Total 189 1. Execution…

The Batch transaction feature (XLS-56) was thoroughly tested with 189 cases grouped by execution mode, multi-account and multi-signature interactions, tickets, replay and metadata, vault, loan and transaction types, signature and structural validation, and security and adversarial measures.

The tests covered various scenarios, including all payments succeeding or failing, mixed transaction types, fee calculation, maximum inner transactions limits, cash same check multiple times, fail and then succeed, tickets, replay and metadata handling, vault, loan and transaction type operations, signature and structural validation, and security and adversarial testing.

Some specific tests included batch allornothing operations, multi-account atomic swaps, circular three-way swaps, multi-account atomic swaps with or without signers, and creating offers with both accounts. The tests also included various checks on vault functionality, loan operations, transaction type trustset, offercreate, account set, escrow create, check create, nftokenmint, ticket create, signerlistset, and depositpreauth.

Additionally, the tests covered signature and structural validation, including preimage matching, signature binding, prefletion errors, and security enforcement tests. The comprehensive testing provided a robust framework for ensuring the Batch transaction feature's reliability and security.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Tuesday 8 September →