macro_rules! vm_effect {
($name:ident { $($field:ident : $val:expr),* $(,)? }) => { ... };
}Expand description
Creates a VmEffectData.
This is mostly useful for testing expected effects, and is expected to be compared
against a VmEffect.
§Example
ⓘ
let val = 3;
sink.add_expectation(vm_effect!(StuffHappened { x: 1, y: val }));
client.action(storage_id, sink, vm_action!(create(val)))