()
| 97 | |
| 98 | #[test] |
| 99 | fn from() { |
| 100 | let name = UserFuncName::testcase("test"); |
| 101 | let signature = Signature::new(CallConv::Fast); |
| 102 | let func = &Function::with_name_signature(name, signature); |
| 103 | let env: FunctionStore = func.into(); |
| 104 | assert_eq!(env.index_of("%test"), Some(FuncIndex::from_u32(0))); |
| 105 | } |
| 106 | } |
no test coverage detected