Skip to main content

Crate carbon_test_utils

Crate carbon_test_utils 

Source
Expand description

Test fixtures and JSON loaders for decoder tests.

Provides serde-deserializable mirrors of Instruction, AccountMeta, and Account (with appropriate base58 / base64 / hex / FromStr field adapters), plus read_* helpers that load them from JSON fixtures on disk.

Decoder crates use these types in their tests/ directories to capture real on-chain instructions and accounts as JSON and replay them through the decoder under test.

Modules§

base58_deserialize
Base58 helper for inline test data.

Structs§

TestAccount
TestAccountMeta
TestInstruction

Functions§

read_account
read_instruction
read_transaction_meta