ProgramTestExt

Trait ProgramTestExt 

Source
pub trait ProgramTestExt {
    // Required methods
    fn add_mint(
        &mut self,
        key: Option<Pubkey>,
        decimals: u8,
        mint_authority: &Pubkey,
    ) -> (Pubkey, Mint);
    fn add_account_with_lamports(&mut self, key: Pubkey, lamports: u64);
}

Required Methods§

Source

fn add_mint( &mut self, key: Option<Pubkey>, decimals: u8, mint_authority: &Pubkey, ) -> (Pubkey, Mint)

Source

fn add_account_with_lamports(&mut self, key: Pubkey, lamports: u64)

Implementations on Foreign Types§

Source§

impl ProgramTestExt for ProgramTest

Source§

fn add_mint( &mut self, key: Option<Pubkey>, decimals: u8, mint_authority: &Pubkey, ) -> (Pubkey, Mint)

Source§

fn add_account_with_lamports(&mut self, key: Pubkey, lamports: u64)

Implementors§