Working on eosio native testing for unit testing and find an example that only for setting only one action data value:
intrinsics::set_intrinsic<intrinsics::read_action_data>(
[](void* m, uint32_t len) {
check(len <= sizeof(eosio::name), "failed from read_action_data");
*((eosio::name*)m) = "hello"_n;
return len;
});
intrinsics::set_intrinsic<intrinsics::action_data_size>(
[]() {
return (uint32_t)sizeof(eosio::name);
});
But i want to write test for more than action data value but unable to find any way to do so.