mock_process_instruction

Function mock_process_instruction 

Source
pub fn mock_process_instruction<F: FnMut(&mut InvokeContext<'_, '_>), G: FnMut(&mut InvokeContext<'_, '_>)>(
    loader_id: &Pubkey,
    program_index: Option<IndexOfAccount>,
    instruction_data: &[u8],
    transaction_accounts: Vec<KeyedAccountSharedData>,
    instruction_account_metas: Vec<AccountMeta>,
    expected_result: Result<(), InstructionError>,
    builtin_function: BuiltinFunctionWithContext,
    pre_adjustments: F,
    post_adjustments: G,
) -> Vec<AccountSharedData>
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.