Crate solana_program_test

Source
Expand description

The solana-program-test provides a BanksClient-based test framework SBF programs

Re-exports§

pub use tokio;

Modules§

programs

Macros§

processor
Converts a solana-program-style entrypoint into the runtime’s entrypoint style, for use with ProgramTest::add_program

Structs§

BanksClient
BanksTransactionResultWithMetadata
EbpfVm
A virtual machine to run eBPF programs.
InvokeContext
Main pipeline from runtime to program execution.
ProgramTest
ProgramTestContext

Enums§

BanksClientError
Errors from BanksClient
EbpfError
Error definitions
ProgramTestError
Errors from the program test environment

Traits§

ProgramTestBanksClientExt

Functions§

find_file
get_runtime_environment_key
Returns (and if not done before generates) the encryption key for the VM pointer
invoke_builtin_function
read_file

Type Aliases§

IndexOfAccount
Index of an account inside of the TransactionContext or an InstructionContext.