Struct solana_program_test::ProgramTestContext [−][src]
pub struct ProgramTestContext { pub banks_client: BanksClient, pub last_blockhash: Hash, pub payer: Keypair, // some fields omitted }
Fields
banks_client: BanksClient
last_blockhash: Hash
payer: Keypair
Implementations
pub fn increment_vote_account_credits(
&mut self,
vote_account_address: &Pubkey,
number_of_credits: u64
)
pub fn increment_vote_account_credits(
&mut self,
vote_account_address: &Pubkey,
number_of_credits: u64
)
Manually increment vote credits for the current epoch in the specified vote account to simulate validator voting activity
Force the working bank ahead to a new slot
Auto Trait Implementations
impl !RefUnwindSafe for ProgramTestContext
impl Send for ProgramTestContext
impl Sync for ProgramTestContext
impl Unpin for ProgramTestContext
impl !UnwindSafe for ProgramTestContext
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self