()
| 268 | |
| 269 | #[test] |
| 270 | fn eqref_unwrap_array() -> Result<()> { |
| 271 | let mut store = gc_store()?; |
| 272 | let array_ty = ArrayType::new( |
| 273 | store.engine(), |
| 274 | FieldType::new(Mutability::Const, ValType::I32.into()), |
| 275 | ); |
| 276 | let pre = ArrayRefPre::new(&mut store, array_ty); |
| 277 | let a = ArrayRef::new(&mut store, &pre, &Val::I32(5), 3)?; |
| 278 | let eq: Rooted<EqRef> = a.into(); |
| 279 | let _a2 = eq.unwrap_array(&store)?; |
| 280 | Ok(()) |
| 281 | } |
| 282 | |
| 283 | #[test] |
| 284 | fn eqref_matches_ty_eq() -> Result<()> { |
nothing calls this directly
no test coverage detected