Expand description
§Transaction Assertions
Assertion helpers for testing transaction results in TestSVM.
This module provides traits and types for asserting expected transaction outcomes, including methods for verifying that transactions succeed or fail with specific errors. These assertions are particularly useful in test environments where you need to verify that your program behaves correctly under various conditions.
§Features
- Success/Failure Assertions: Verify transactions succeed or fail as expected
- Error Matching: Check for specific error types including Anchor errors
- Type-safe API: Compile-time guarantees for assertion chains
Structs§
- TXError
Assertions - Provides assertion methods for failed transactions.
- TXSuccess
Assertions - Assertions for successful transactions.
Traits§
- TXResult
Assertions - Extension trait for transaction results providing assertion methods.