pub fn add_account_with_file_data(
        &mut self,
        address: Pubkey,
        lamports: u64,
        owner: Pubkey,
        filename: &str,
    ) {
        self.add_account(
            address,
            Account {
                lamports,
                data: read_file(find_file(filename).unwrap_or_else(|| {
                    panic!("Unable to locate {}", filename);
                })),
                owner,
                executable: false,
                rent_epoch: 0,
            },
        );
    }
/// Add an account to the test environment with the account data in the provided `filename`
Add an account to the test environment with the account data in the provided `filename`
Add an account to the test environment with the account data in the provided ` filename `
pub fn add_account_with_file_data(
        &mut self,
        address: Pubkey,
        lamports: u64,
        owner: Pubkey,
        filename: &str,
    ) {
        self.add_account(
            address,
            Account {
                lamports,
                data: read_file(find_file(filename).unwrap_or_else(|| {
                    panic!("Unable to locate {}", filename);
                })),
                owner,
                executable: false,
                rent_epoch: 0,
            },
        );
    }
pub fn add_account_with_file_data ( & mut self , address : Pubkey , lamports : u64 , owner : Pubkey , filename : & str , ) { self . add_account ( address , Account { lamports , data : read_file ( find_file ( filename ) . unwrap_or_else ( | | { panic ! ( " " filename ) ; } ) ) , owner , executable : false , rent_epoch : 0 , } , ) ; }
Add an account to the test environment with the account data in the provided `filename`
Add an account to the test environment with the account data in the provided ` filename `
&mut self
address
Pubkey
lamports
u64
owner
Pubkey
filename
&str