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: BanksClientlast_blockhash: Hashpayer: Keypair

Implementations

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]

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

Blanket Implementations

impl<T> AbiExample for T

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,