()
| 130 | |
| 131 | #[test] |
| 132 | fn run_a_command() { |
| 133 | let mut signature = Signature::new(CallConv::Fast); |
| 134 | signature.returns.push(AbiParam::new(types::I32)); |
| 135 | let command = parse_run_command(";; run: %return42() == 42 ", &signature) |
| 136 | .unwrap() |
| 137 | .unwrap(); |
| 138 | |
| 139 | assert!(command.run(|_, _| Ok(vec![DataValue::I32(42)])).is_ok()); |
| 140 | assert!(command.run(|_, _| Ok(vec![DataValue::I32(43)])).is_err()); |
| 141 | } |
| 142 | } |
nothing calls this directly
no test coverage detected