pub struct ProgramTestClientBlocking { /* private fields */ }Implementations§
source§impl ProgramTestClientBlocking
impl ProgramTestClientBlocking
pub fn new( program_: &[FuzzingProgram], config: &Config, ) -> Result<Self, FuzzClientError>
Trait Implementations§
source§impl FuzzClient for ProgramTestClientBlocking
impl FuzzClient for ProgramTestClientBlocking
source§fn set_account(&mut self, lamports: u64) -> Keypair
fn set_account(&mut self, lamports: u64) -> Keypair
Create an empty account and add lamports to it
source§fn set_token_account(
&mut self,
mint: Pubkey,
owner: Pubkey,
amount: u64,
delegate: Option<Pubkey>,
is_native: Option<u64>,
delegated_amount: u64,
close_authority: Option<Pubkey>,
) -> Pubkey
fn set_token_account( &mut self, mint: Pubkey, owner: Pubkey, amount: u64, delegate: Option<Pubkey>, is_native: Option<u64>, delegated_amount: u64, close_authority: Option<Pubkey>, ) -> Pubkey
Create an SPL token account
source§fn set_mint_account(
&mut self,
decimals: u8,
owner: &Pubkey,
freeze_authority: Option<Pubkey>,
) -> Pubkey
fn set_mint_account( &mut self, decimals: u8, owner: &Pubkey, freeze_authority: Option<Pubkey>, ) -> Pubkey
Create an SPL mint account
source§fn get_account(
&mut self,
key: &Pubkey,
) -> Result<Option<Account>, FuzzClientError>
fn get_account( &mut self, key: &Pubkey, ) -> Result<Option<Account>, FuzzClientError>
Get the account at the given address
source§fn get_accounts(
&mut self,
metas: &[AccountMeta],
) -> Result<Vec<Option<Account>>, FuzzClientErrorWithOrigin>
fn get_accounts( &mut self, metas: &[AccountMeta], ) -> Result<Vec<Option<Account>>, FuzzClientErrorWithOrigin>
Get accounts based on the supplied meta information
source§fn get_last_blockhash(&self) -> Hash
fn get_last_blockhash(&self) -> Hash
Get last blockhash
source§fn process_transaction(
&mut self,
transaction: impl Into<VersionedTransaction>,
) -> Result<(), FuzzClientError>
fn process_transaction( &mut self, transaction: impl Into<VersionedTransaction>, ) -> Result<(), FuzzClientError>
Send a transaction and return until the transaction has been finalized or rejected.
source§fn set_account_custom(&mut self, address: &Pubkey, account: &AccountSharedData)
fn set_account_custom(&mut self, address: &Pubkey, account: &AccountSharedData)
Create or overwrite a custom account, subverting normal runtime checks.
Auto Trait Implementations§
impl !Freeze for ProgramTestClientBlocking
impl RefUnwindSafe for ProgramTestClientBlocking
impl Send for ProgramTestClientBlocking
impl Sync for ProgramTestClientBlocking
impl Unpin for ProgramTestClientBlocking
impl UnwindSafe for ProgramTestClientBlocking
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more