()
| 259 | |
| 260 | #[tokio::test] |
| 261 | async fn async_disallows_structref_new() -> Result<()> { |
| 262 | let mut store = async_limiter_store(); |
| 263 | let ty = StructType::new( |
| 264 | store.engine(), |
| 265 | [FieldType::new(Mutability::Var, StorageType::I8)], |
| 266 | )?; |
| 267 | let pre = StructRefPre::new(&mut store, ty); |
| 268 | assert!(StructRef::new(&mut store, &pre, &[Val::I32(0)]).is_err()); |
| 269 | StructRef::new_async(&mut store, &pre, &[Val::I32(0)]).await?; |
| 270 | Ok(()) |
| 271 | } |
| 272 | |
| 273 | #[test] |
| 274 | fn epoch_yield_disallowed_without_async() -> Result<()> { |
nothing calls this directly
no test coverage detected