()
| 14 | ]; |
| 15 | |
| 16 | fn module_cases() -> Vec<(Module, FuncType, Vec<WasmValue>)> { |
| 17 | let mut cases = Vec::<(Module, FuncType, Vec<WasmValue>)>::new(); |
| 18 | for results in VAL_LISTS { |
| 19 | for params in VAL_LISTS { |
| 20 | let param_tys = params.iter().map(WasmType::from).collect::<Vec<_>>(); |
| 21 | let result_tys = results.iter().map(WasmType::from).collect::<Vec<_>>(); |
| 22 | let func_ty = FuncType::new(¶m_tys, &result_tys); |
| 23 | cases.push((proxy_module(&func_ty), func_ty, params.to_vec())); |
| 24 | } |
| 25 | } |
| 26 | cases |
| 27 | } |
| 28 | |
| 29 | #[test] |
| 30 | fn test_return_invalid_type() -> Result<()> { |
no test coverage detected