Crate testsvm_assertions

Crate testsvm_assertions 

Source
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§

TXErrorAssertions
Provides assertion methods for failed transactions.
TXSuccessAssertions
Assertions for successful transactions.

Traits§

TXResultAssertions
Extension trait for transaction results providing assertion methods.