Registry / testing / miraland-program-test

miraland-program-test

JSON →
library1.19.2rscratesunverified

Miraland Program Test Framework

# Cargo.toml [dependencies] miraland-program-test = "1.19.2"
INSTALL
IMPORT
SIG · MIRALAND-PROGRAM-T
M
miraland-program-test
testingrustv1.19.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ProgramTest
use miraland_program_test::ProgramTest;

Start a local Miraland test environment for program testing.

use miraland_program_test::ProgramTest; let mut program_test = ProgramTest::new("my_program", program_id, processor!(process_instruction)); let (mut banks_client, payer, recent_blockhash) = program_test.start().await; println!("Test environment started");
Debug
Known issues
gotchaRequires async runtime (tokio) to run tests
fix
Add tokio as a dev-dependency and use #[tokio::test]
affects: >=1.0.0
Upgrade
Version history
1.19.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
miraland-program-test — cargo add miraland-program-test · libregistry