fn sys_api_call_reject_msg_copy() {
    let api_type = test_api_type_for_reject(RejectContext::new(
        RejectCode::CanisterReject,
        "rejected".to_string(),
    ));
    let wasm_result = execute(
        api_type,
        SystemStateBuilder::default().build(),
        REJECT_MSG_COPY_WAT,
        test_func_ref(),
    );
    match wasm_result {
        Ok(Some(WasmResult::Reply(v))) => assert_eq!(&b"xxxxrejected"[..], &v[..]),
        val => panic!("unexpected response: {:?}", val),
    }
}
// copies data from reject message to the heap and returns it
copies data from reject message to the heap and returns it
copies data from reject message to the heap and returns it
fn sys_api_call_reject_msg_copy() {
    let api_type = test_api_type_for_reject(RejectContext::new(
        RejectCode::CanisterReject,
        "rejected".to_string(),
    ));
    let wasm_result = execute(
        api_type,
        SystemStateBuilder::default().build(),
        REJECT_MSG_COPY_WAT,
        test_func_ref(),
    );
    match wasm_result {
        Ok(Some(WasmResult::Reply(v))) => assert_eq!(&b"xxxxrejected"[..], &v[..]),
        val => panic!("unexpected response: {:?}", val),
    }
}
fn sys_api_call_reject_msg_copy ( ) { let api_type = test_api_type_for_reject ( RejectContext :: new ( RejectCode :: CanisterReject , " " . to_string ( ) , ) ) ; let wasm_result = execute ( api_type , SystemStateBuilder :: default ( ) . build ( ) , REJECT_MSG_COPY_WAT , test_func_ref ( ) , ) ; match wasm_result { Ok ( Some ( WasmResult :: Reply ( v ) ) ) => assert_eq ! ( b" " [ ] v [ ] ) , val => panic ! ( " " val ) , } }
copies data from reject message to the heap and returns it
copies data from reject message to the heap and returns it