fn generate_provided_canister_states(msgs: Vec<Request>) -> BTreeMap<CanisterId, CanisterState> {
    let mut provided_canister_states = BTreeMap::<CanisterId, CanisterState>::new();

    for msg in msgs {
        let provided_canister_state =
            provided_canister_states
                .entry(msg.sender)
                .or_insert_with(|| {
                    new_canister_state(
                        msg.sender,
                        msg.sender.get(),
                        *INITIAL_CYCLES,
                        NumSeconds::from(100_000),
                    )
                });
        provided_canister_state.push_output_request(msg).unwrap();
    }

    provided_canister_states
}
// Generates a `BTreeMap` of provided `CanisterStates`, with the given messages
// in output queues.
Generates a `BTreeMap` of provided `CanisterStates`, with the given messages
in output queues.
Generates a ` BTreeMap ` of provided ` CanisterStates ` with the given messages in output queues .
fn generate_provided_canister_states(msgs: Vec<Request>) -> BTreeMap<CanisterId, CanisterState> {
    let mut provided_canister_states = BTreeMap::<CanisterId, CanisterState>::new();
    for msg in msgs {
        let provided_canister_state =
            provided_canister_states
                .entry(msg.sender)
                .or_insert_with(|| {
                    new_canister_state(
                        msg.sender,
                        msg.sender.get(),
                        *INITIAL_CYCLES,
                        NumSeconds::from(100_000),
                    )
                });
        provided_canister_state.push_output_request(msg).unwrap();
    }
    provided_canister_states
}
fn generate_provided_canister_states ( msgs : Vec < Request > ) -> BTreeMap < CanisterId , CanisterState > { let mut provided_canister_states = BTreeMap :: < CanisterId , CanisterState > :: new ( ) ; for msg in msgs { let provided_canister_state = provided_canister_states . entry ( msg . sender ) . or_insert_with ( | | { new_canister_state ( msg . sender , msg . sender . get ( ) , * INITIAL_CYCLES , NumSeconds :: from ( 100_000 ) , ) } ) ; provided_canister_state . push_output_request ( msg ) . unwrap ( ) ; } provided_canister_states }
Generates a `BTreeMap` of provided `CanisterStates`, with the given messages
in output queues.
Generates a ` BTreeMap ` of provided ` CanisterStates ` with the given messages in output queues .
msgs
Vec<Request>
msgs
Vec<Request>