solana_test_client/
lib.rs

1pub mod banks_client;
2pub mod banks_client_interface;
3pub mod banks_server;
4pub mod program_test;
5pub mod programs;
6
7#[macro_use]
8extern crate solana_bpf_loader_program;
9
10pub use program_test::*;
11
12/// Converts a `solana-program`-style entrypoint into the runtime's entrypoint style, for
13/// use with `ProgramTest::add_program`
14#[macro_export]
15macro_rules! processor {
16    ($process_instruction:expr) => {
17        Some(
18            |first_instruction_account: usize,
19             invoke_context: &mut solana_test_client::program_test::InvokeContext| {
20                $crate::program_test::builtin_process_instruction(
21                    $process_instruction,
22                    first_instruction_account,
23                    invoke_context,
24                )
25            },
26        )
27    };
28}