()
| 213 | |
| 214 | #[tokio::test] |
| 215 | async fn async_disallows_array_ref_new() -> Result<()> { |
| 216 | let mut store = async_limiter_store(); |
| 217 | let ty = ArrayType::new( |
| 218 | store.engine(), |
| 219 | FieldType::new(Mutability::Var, StorageType::I8), |
| 220 | ); |
| 221 | let pre = ArrayRefPre::new(&mut store, ty); |
| 222 | assert!(ArrayRef::new(&mut store, &pre, &Val::I32(0), 10).is_err()); |
| 223 | ArrayRef::new_async(&mut store, &pre, &Val::I32(0), 10).await?; |
| 224 | Ok(()) |
| 225 | } |
| 226 | |
| 227 | #[tokio::test] |
| 228 | async fn async_disallows_array_ref_new_fixed() -> Result<()> { |
nothing calls this directly
no test coverage detected