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
impl ProgramTestContext
[src]
impl ProgramTestContext
[src]pub fn genesis_config(&self) -> &GenesisConfig
[src]
pub fn increment_vote_account_credits(
&mut self,
vote_account_address: &Pubkey,
number_of_credits: u64
)
[src]
&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
pub fn warp_to_slot(&mut self, warp_slot: Slot) -> Result<(), ProgramTestError>
[src]
Force the working bank ahead to a new slot
Auto Trait Implementations
impl !RefUnwindSafe for ProgramTestContext
impl !RefUnwindSafe for ProgramTestContext
impl Send for ProgramTestContext
impl Send for ProgramTestContext
impl Sync for ProgramTestContext
impl Sync for ProgramTestContext
impl Unpin for ProgramTestContext
impl Unpin for ProgramTestContext
impl !UnwindSafe for ProgramTestContext
impl !UnwindSafe for ProgramTestContext
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,